'How to create c++ lib with specific architecture?
I am using gradle to build c++ library
1. Configure library target machines
library {
targetMachines = [
machines.linux.x86_64,
machines.windows.x86, machines.windows.x86_64,
machines.macOS.x86_64
]
}
2. Configure library linkages
library {
linkage = [Linkage.STATIC, Linkage.SHARED]
}
I can't understant the above targetmachines and linkage code. I want to create c++ library with specific architecture.
Can any one explain what is the purpose of those code ?
Solution 1:[1]
The reference you've provided gives a very good documentation of what is needed.
There are 2 types of libraries, static and shared, that you can create.
For the linkage config, you will have to specify the type of library that you would like to create.
The targetMachines specifies the configuration of the system where your library is expected to be used.
one example here could be
library{
targetMachines= [machines.windows.x86, machines.windows.x86_64]
linkage = [Linkage.STATIC]
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | The Apache |
