-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi,
Im migrating the project Nativium (https://github.com/nativium/nativium) from v1 to v2, believing that is support android/ios/watchos/tvos out-of-box instead need use our darwin-toolchain package (https://github.com/nativium/nativium/tree/main/conan/darwin-toolchain) anymore.
I open a pull-request that show what i already changed in this migration.
- add
*:to some options/settings - move
conanfile.pyto root - move some paths to
conanfile.pyto root file (because previous step)
PR: https://github.com/nativium/nativium/pull/39/files
I tried run the setup method to run the c++ tests:
python3 nativium.py target tests setup
And it execute the following command in the folder /Users/paulo/Developer/workspaces/cpp/nativium/build/tests/debug/x86_64/conan:
conan install /Users/paulo/Developer/workspaces/cpp/nativium/conanfile.py -pr:b default -pr:h /Users/paulo/Developer/workspaces/cpp/nativium/conan/profiles/nativium_macos_profile -s:h build_type=Debug -s:h arch=x86_64 -o *:nativium_target=tests -o *:nativium_build_type=debug -o *:nativium_arch=x86_64 -o *:nativium_project_name=tests -o *:nativium_product_name= -o *:nativium_version=1.0.0 -o *:nativium_version_code=1 -s:h os.version=10.13 -o *:nativium_code_coverage=True --build=missing --update
After analise it, i see some wrong things:
- Conan create a file in the root folder
CMakeUserPresets.json(how to don't create this ?)
But ok, lets build the target with command python3 nativium.py target tests run it run the following commands.
conan build /Users/paulo/Developer/workspaces/cpp/nativium/conanfile.py
in the folder: /Users/paulo/Developer/workspaces/cpp/nativium/build/tests/debug/x86_64/conan
But it try create folder /Users/paulo/Developer/workspaces/cpp/nativium/build/None/None/None, because conanfile.py don't load the variables from setup step.
What im doing wrong? And what i still migrate?
Thanks.