Browse Source

Windows build with Conan

master
Alexander Popov 2 weeks ago
parent
commit
060c13a068
  1. 3
      HISTORY.md
  2. 14
      README.md
  3. 14
      conanfile.py
  4. 7
      make-libs-list.vcxproj

3
HISTORY.md

@ -8,6 +8,7 @@
> This project use Semantic Versioning 2.0.0 https://semver.org/
## 13/09/2022 - (1.0.1)
## 14/09/2022 - (1.0.1)
- ➕ - Added [Conan](https://conan.io/) for Windows
- ✔ - Fixed bad returned value of `assets_version`
- ♻ - Changed the letter argument of the program to return version information from `s` to `i`

14
README.md

@ -9,11 +9,18 @@ libraries list for specified operation system.
**How to build from source:**
**Linux:**
```sh
conan install .
make
```
**Windows:**
```sh
conan install .
conan build .
```
**How to use:**
```
@ -50,11 +57,18 @@ wget https://piston-meta.mojang.com/v1/packages/68cded4616fba9fbefb3f895033c2611
**Как скомпилировать:**
**Linux:**
```sh
conan install .
make
```
**Windows:**
```sh
conan install .
conan build .
```
**Как использовать:**
```

14
conanfile.py

@ -0,0 +1,14 @@
from conans import ConanFile, MSBuild
class ExampleConan(ConanFile):
name = "make-libs-list"
version = "1.0.1"
settings = "os", "arch", "build_type", "compiler"
options = {"shared": [True, False], "st": [True, False]}
default_options = {"shared": False, "st": False}
exports = "*"
_msvc_archs = {"x86": "x86", "x86_64": "x64"}
def build(self):
msbuild = MSBuild(self)
msbuild.build("make-libs-list.vcxproj")

7
make-libs-list.vcxproj

@ -25,18 +25,11 @@
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Link>
<AdditionalLibraryDirectories>.\</AdditionalLibraryDirectories>
<AdditionalDependencies>cjson.lib</AdditionalDependencies>
</Link>
<ClCompile>
<AdditionalIncludeDirectories>.\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ItemGroup>
<ClInclude Include="cjson/cjson.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="make-libs-list.c" />
</ItemGroup>

Loading…
Cancel
Save