diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f58b1fbc..86cea5181 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,8 +121,6 @@ jobs: cp -r docs install - cp -r binding install - cp -r sample install rm -r install/sample/cpp/*.vcxproj install/sample/cpp/CMakeLists.txt @@ -202,8 +200,6 @@ jobs: cp -r docs install - cp -r binding install - cp -r sample install rm -r install/sample/cpp/*.vcxproj install/sample/cpp/CMakeLists.txt @@ -274,8 +270,6 @@ jobs: cp -r docs install - cp -r binding install - cp -r sample install rm -r install/sample/cpp/*.vcxproj install/sample/cpp/CMakeLists.txt diff --git a/sample/cpp/CMakeLists.txt b/sample/cpp/CMakeLists.txt index 2449e9ef2..87ff672dc 100644 --- a/sample/cpp/CMakeLists.txt +++ b/sample/cpp/CMakeLists.txt @@ -1,7 +1,3 @@ add_executable(sample main.cpp) target_link_libraries(sample MaaFramework MaaToolKit) - -add_dependencies(sample AssetsAgentBinary AssetsResource) - -install(TARGETS sample RUNTIME DESTINATION share) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index df2de4e18..bcf7b0a42 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -15,4 +15,6 @@ add_subdirectory(MaaToolKit) if(WITH_GRPC) add_subdirectory(MaaRpc) -endif(WITH_GRPC) \ No newline at end of file +endif(WITH_GRPC) + +add_subdirectory(binding) diff --git a/source/binding/CMakeLists.txt b/source/binding/CMakeLists.txt new file mode 100644 index 000000000..c192d46a1 --- /dev/null +++ b/source/binding/CMakeLists.txt @@ -0,0 +1 @@ +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/Python" DESTINATION binding) diff --git a/binding/Python/maa/__init__.py b/source/binding/Python/maa/__init__.py similarity index 100% rename from binding/Python/maa/__init__.py rename to source/binding/Python/maa/__init__.py diff --git a/binding/Python/maa/callback_agent.py b/source/binding/Python/maa/callback_agent.py similarity index 100% rename from binding/Python/maa/callback_agent.py rename to source/binding/Python/maa/callback_agent.py diff --git a/binding/Python/maa/common.py b/source/binding/Python/maa/common.py similarity index 100% rename from binding/Python/maa/common.py rename to source/binding/Python/maa/common.py diff --git a/binding/Python/maa/controller.py b/source/binding/Python/maa/controller.py similarity index 100% rename from binding/Python/maa/controller.py rename to source/binding/Python/maa/controller.py diff --git a/binding/Python/maa/define.py b/source/binding/Python/maa/define.py similarity index 100% rename from binding/Python/maa/define.py rename to source/binding/Python/maa/define.py diff --git a/binding/Python/maa/library.py b/source/binding/Python/maa/library.py similarity index 100% rename from binding/Python/maa/library.py rename to source/binding/Python/maa/library.py diff --git a/binding/Python/maa/maa.py b/source/binding/Python/maa/maa.py similarity index 100% rename from binding/Python/maa/maa.py rename to source/binding/Python/maa/maa.py diff --git a/binding/Python/maa/resource.py b/source/binding/Python/maa/resource.py similarity index 100% rename from binding/Python/maa/resource.py rename to source/binding/Python/maa/resource.py