Skip to content

Commit

Permalink
Version: Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswenzz committed Aug 13, 2023
1 parent f6dbf50 commit 9ae5f95
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 39 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16.0)
project(CoD4DM1 VERSION 1.0.3 LANGUAGES CXX)
project(CoD4DM1 VERSION 1.0.4 LANGUAGES CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
74 changes: 36 additions & 38 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,39 @@
from conans import ConanFile, CMake
import os
from conans import ConanFile, CMake


class CoD4DM1(ConanFile):
name = "CoD4DM1"
version = "1.0.3"
license = "LICENCE"
url = "https://github.com/Iswenzz/CoD4-DM1"
description = "Reverse of CoD4 & CoD4X (.DM_1) demo files with features such as parsing snapshot informations, frames, entities, clients and server messages."

generators = "cmake"
exports_sources = "LICENSE", "README.md", "CMakeLists.txt", "src/*", "fixtures/*"

requires = (
"cxxopts/3.0.0",
"nlohmann_json/3.10.5"
)
settings = "os", "arch", "compiler", "build_type"
options = {"enable_testing": [True, False]}
default_options = {"enable_testing": False}

def build_requirements(self):
if self.options.enable_testing:
self.build_requires("gtest/cci.20210126", force_host_context=True)

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def package(self):
self.copy("LICENSE, README.md")
self.copy("*.hpp", src="src", dst="include/CoD4DM1")
self.copy("*.a", dst="lib", keep_path=False)
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.so", dst="bin", keep_path=False)

def package_info(self):
self.cpp_info.includedirs.append(os.path.join("include", "CoD4DM1"))
self.cpp_info.libs = ["CoD4DM1"]
name = "CoD4DM1"
version = "1.0.4"
license = "LICENCE"
url = "https://github.com/Iswenzz/CoD4-DM1"
description = "Reverse of CoD4 & CoD4X (.DM_1) demo files with features such as parsing snapshot informations, frames, entities, clients and server messages."

generators = "cmake"
exports_sources = "LICENSE", "README.md", "CMakeLists.txt", "src/*", "fixtures/*"

requires = ("cxxopts/3.1.1", "nlohmann_json/3.11.2")
settings = "os", "arch", "compiler", "build_type"
options = {"enable_testing": [True, False]}
default_options = {"enable_testing": False}

def build_requirements(self):
if self.options.enable_testing:
self.build_requires("gtest/1.14.0", force_host_context=True)

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def package(self):
self.copy("LICENSE, README.md")
self.copy("*.hpp", src="src", dst="include/CoD4DM1")
self.copy("*.a", dst="lib", keep_path=False)
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.so", dst="bin", keep_path=False)

def package_info(self):
self.cpp_info.includedirs.append(os.path.join("include", "CoD4DM1"))
self.cpp_info.libs = ["CoD4DM1"]

0 comments on commit 9ae5f95

Please sign in to comment.