Skip to content

Commit 9ae5f95

Browse files
committed
Version: Bump
1 parent f6dbf50 commit 9ae5f95

File tree

2 files changed

+37
-39
lines changed

2 files changed

+37
-39
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.16.0)
2-
project(CoD4DM1 VERSION 1.0.3 LANGUAGES CXX)
2+
project(CoD4DM1 VERSION 1.0.4 LANGUAGES CXX)
33
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
44
set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)

conanfile.py

+36-38
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
1-
from conans import ConanFile, CMake
21
import os
2+
from conans import ConanFile, CMake
3+
34

45
class CoD4DM1(ConanFile):
5-
name = "CoD4DM1"
6-
version = "1.0.3"
7-
license = "LICENCE"
8-
url = "https://github.com/Iswenzz/CoD4-DM1"
9-
description = "Reverse of CoD4 & CoD4X (.DM_1) demo files with features such as parsing snapshot informations, frames, entities, clients and server messages."
10-
11-
generators = "cmake"
12-
exports_sources = "LICENSE", "README.md", "CMakeLists.txt", "src/*", "fixtures/*"
13-
14-
requires = (
15-
"cxxopts/3.0.0",
16-
"nlohmann_json/3.10.5"
17-
)
18-
settings = "os", "arch", "compiler", "build_type"
19-
options = {"enable_testing": [True, False]}
20-
default_options = {"enable_testing": False}
21-
22-
def build_requirements(self):
23-
if self.options.enable_testing:
24-
self.build_requires("gtest/cci.20210126", force_host_context=True)
25-
26-
def build(self):
27-
cmake = CMake(self)
28-
cmake.configure()
29-
cmake.build()
30-
31-
def package(self):
32-
self.copy("LICENSE, README.md")
33-
self.copy("*.hpp", src="src", dst="include/CoD4DM1")
34-
self.copy("*.a", dst="lib", keep_path=False)
35-
self.copy("*.lib", dst="lib", keep_path=False)
36-
self.copy("*.dll", dst="bin", keep_path=False)
37-
self.copy("*.so", dst="bin", keep_path=False)
38-
39-
def package_info(self):
40-
self.cpp_info.includedirs.append(os.path.join("include", "CoD4DM1"))
41-
self.cpp_info.libs = ["CoD4DM1"]
6+
name = "CoD4DM1"
7+
version = "1.0.4"
8+
license = "LICENCE"
9+
url = "https://github.com/Iswenzz/CoD4-DM1"
10+
description = "Reverse of CoD4 & CoD4X (.DM_1) demo files with features such as parsing snapshot informations, frames, entities, clients and server messages."
11+
12+
generators = "cmake"
13+
exports_sources = "LICENSE", "README.md", "CMakeLists.txt", "src/*", "fixtures/*"
14+
15+
requires = ("cxxopts/3.1.1", "nlohmann_json/3.11.2")
16+
settings = "os", "arch", "compiler", "build_type"
17+
options = {"enable_testing": [True, False]}
18+
default_options = {"enable_testing": False}
19+
20+
def build_requirements(self):
21+
if self.options.enable_testing:
22+
self.build_requires("gtest/1.14.0", force_host_context=True)
23+
24+
def build(self):
25+
cmake = CMake(self)
26+
cmake.configure()
27+
cmake.build()
28+
29+
def package(self):
30+
self.copy("LICENSE, README.md")
31+
self.copy("*.hpp", src="src", dst="include/CoD4DM1")
32+
self.copy("*.a", dst="lib", keep_path=False)
33+
self.copy("*.lib", dst="lib", keep_path=False)
34+
self.copy("*.dll", dst="bin", keep_path=False)
35+
self.copy("*.so", dst="bin", keep_path=False)
36+
37+
def package_info(self):
38+
self.cpp_info.includedirs.append(os.path.join("include", "CoD4DM1"))
39+
self.cpp_info.libs = ["CoD4DM1"]

0 commit comments

Comments
 (0)