split debug & release for windows
This commit is contained in:
15
doric-Qt/example/doric/scripts/conanfile-windows-debug.py
Normal file
15
doric-Qt/example/doric/scripts/conanfile-windows-debug.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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("*.lib", dst="lib",src="../../../binary/doric/debug")
|
||||
self.copy("*.pdb", dst="bin",src="../../../binary/doric/debug")
|
||||
self.copy("*", dst="qml",src="../resources")
|
||||
self.copy("*.js", dst="js",src="../../../../doric-js/bundle")
|
||||
def package_info(self):
|
||||
self.cpp_info.libs = ["DoricCore"]
|
@@ -7,6 +7,8 @@ class DoricCore(ConanFile):
|
||||
|
||||
def package(self):
|
||||
self.copy("*.h", dst="include", src="../../doric")
|
||||
self.copy("*.lib", dst="lib",src="../../../binary/doric")
|
||||
self.copy("*.lib", dst="lib",src="../../../binary/doric/release")
|
||||
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,11 +30,9 @@ def main():
|
||||
else:
|
||||
print("params error.");
|
||||
return;
|
||||
system('conan export-pkg ./conanfile-windows.py DoricCore/%s@bixin/stable -s build_type=Debug -s os=Windows' % version)
|
||||
system('conan export-pkg ./conanfile-windows.py DoricCore/%s@bixin/stable -s build_type=Release -s os=Windows' % version)
|
||||
system('conan export-pkg ./conanfile-windows-debug.py DoricCore/%s@bixin/stable -s build_type=Debug -s os=Windows' % version)
|
||||
system('conan export-pkg ./conanfile-windows-release.py DoricCore/%s@bixin/stable -s build_type=Release -s os=Windows' % version)
|
||||
if isOnline == "1":
|
||||
system('conan upload DoricCore/%s@bixin/stable --all -r=pc' % version)
|
||||
system('git tag %s' % version)
|
||||
system('git push --tags')
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Reference in New Issue
Block a user