split debug & release for macos
This commit is contained in:
parent
00047dc132
commit
192e4625c8
@ -7,7 +7,7 @@ class DoricCore(ConanFile):
|
|||||||
|
|
||||||
def package(self):
|
def package(self):
|
||||||
self.copy("*.h", dst="include", src="../../doric")
|
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("*", dst="qml",src="../resources")
|
||||||
self.copy("*.js", dst="js",src="../../../../doric-js/bundle")
|
self.copy("*.js", dst="js",src="../../../../doric-js/bundle")
|
||||||
def package_info(self):
|
def package_info(self):
|
14
doric-Qt/example/doric/scripts/conanfile-macos-release.py
Normal file
14
doric-Qt/example/doric/scripts/conanfile-macos-release.py
Normal 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"]
|
@ -30,8 +30,8 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print("params error.");
|
print("params error.");
|
||||||
return;
|
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-debug.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-release.py DoricCore/%s@bixin/stable -s build_type=Release -s os=Macos' % version)
|
||||||
if isOnline == "1":
|
if isOnline == "1":
|
||||||
system('conan upload DoricCore/%s@bixin/stable --all -r=pc' % version)
|
system('conan upload DoricCore/%s@bixin/stable --all -r=pc' % version)
|
||||||
system('git tag %s' % version)
|
system('git tag %s' % version)
|
||||||
|
Reference in New Issue
Block a user