diff --git a/doric-Qt/example/doric/scripts/conanfile-macos.py b/doric-Qt/example/doric/scripts/conanfile-macos-debug.py similarity index 77% rename from doric-Qt/example/doric/scripts/conanfile-macos.py rename to doric-Qt/example/doric/scripts/conanfile-macos-debug.py index 8a29c853..3c230206 100644 --- a/doric-Qt/example/doric/scripts/conanfile-macos.py +++ b/doric-Qt/example/doric/scripts/conanfile-macos-debug.py @@ -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): diff --git a/doric-Qt/example/doric/scripts/conanfile-macos-release.py b/doric-Qt/example/doric/scripts/conanfile-macos-release.py new file mode 100644 index 00000000..275a8d45 --- /dev/null +++ b/doric-Qt/example/doric/scripts/conanfile-macos-release.py @@ -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"] \ No newline at end of file diff --git a/doric-Qt/example/doric/scripts/package-macos.py b/doric-Qt/example/doric/scripts/package-macos.py index a5fe0eee..4d3826a6 100755 --- a/doric-Qt/example/doric/scripts/package-macos.py +++ b/doric-Qt/example/doric/scripts/package-macos.py @@ -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)