split debug & release for macos

This commit is contained in:
王劲鹏 2021-05-13 14:47:42 +08:00 committed by osborn
parent 00047dc132
commit 192e4625c8
3 changed files with 17 additions and 3 deletions

View File

@ -7,7 +7,7 @@ class DoricCore(ConanFile):
def package(self):
self.copy("*.h", dst="include", src="../../doric")
self.copy("*.a", dst="lib",src="../../../binary/doric")
self.copy("*.a", dst="lib",src="../../../binary/debug/doric")
self.copy("*", dst="qml",src="../resources")
self.copy("*.js", dst="js",src="../../../../doric-js/bundle")
def package_info(self):

View File

@ -0,0 +1,14 @@
from conans import ConanFile
class DoricCore(ConanFile):
license = "MIT"
name = "DoricCore"
settings = "os", "compiler", "build_type", "arch"
def package(self):
self.copy("*.h", dst="include", src="../../doric")
self.copy("*.a", dst="lib",src="../../../binary/release/doric")
self.copy("*", dst="qml",src="../resources")
self.copy("*.js", dst="js",src="../../../../doric-js/bundle")
def package_info(self):
self.cpp_info.libs = ["DoricCore"]

View File

@ -30,8 +30,8 @@ def main():
else:
print("params error.");
return;
system('conan export-pkg ./conanfile-macos.py DoricCore/%s@bixin/stable -s build_type=Debug -s os=Macos' % version)
system('conan export-pkg ./conanfile-macos.py DoricCore/%s@bixin/stable -s build_type=Release -s os=Macos' % version)
system('conan export-pkg ./conanfile-macos-debug.py DoricCore/%s@bixin/stable -s build_type=Debug -s os=Macos' % version)
system('conan export-pkg ./conanfile-macos-release.py DoricCore/%s@bixin/stable -s build_type=Release -s os=Macos' % version)
if isOnline == "1":
system('conan upload DoricCore/%s@bixin/stable --all -r=pc' % version)
system('git tag %s' % version)