Skip to content
Snippets Groups Projects
Commit c7eba08a authored by edvin's avatar edvin
Browse files

It can now be bulit on/for mac

parent 7e0f52a5
No related branches found
No related tags found
No related merge requests found
Pipeline #48124 failed
...@@ -18,6 +18,13 @@ add_subdirectory(lib/cpp-sc2) ...@@ -18,6 +18,13 @@ add_subdirectory(lib/cpp-sc2)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(python-api-src) add_subdirectory(python-api-src)
set_target_properties(civetweb-c-library PROPERTIES FOLDER contrib)
set_target_properties(libprotobuf PROPERTIES FOLDER contrib)
set_target_properties(libprotobuf-lite PROPERTIES FOLDER contrib)
set_target_properties(libprotoc PROPERTIES FOLDER contrib)
set_target_properties(protoc PROPERTIES FOLDER contrib)
set_target_properties(ipv6-parse PROPERTIES FOLDER contrib)
# Hack to make compile, these flags are otherwise set to give errors on warnings # Hack to make compile, these flags are otherwise set to give errors on warnings
if (MSVC) if (MSVC)
set_target_properties(sc2api PROPERTIES COMPILE_FLAGS "/W4") set_target_properties(sc2api PROPERTIES COMPILE_FLAGS "/W4")
......
...@@ -99,6 +99,20 @@ Studio. ...@@ -99,6 +99,20 @@ Studio.
3. Run `make` to build the project (use `make -j N` if you want to use N 3. Run `make` to build the project (use `make -j N` if you want to use N
threads) threads)
# How to build (Mac, untested)
Same dependencies applies as for Windows (i think), although you don't need Visual
Studio but you need Xcode.
1. Open up a terminal, download the source code using the command: `git clone --recurse-submodules https://gitlab.liu.se/course-starcraft-ai/pycommandcenter.git`
2. Next, enter the directory and run the command `mkdir build` followed by `cd
build` and `cmake ../ -G Xcode ` in order to create the xcode project. Then run `open starcraft-python-api.xcodeproj`
3. Click the "play" button to bulid the library
4. The library file can then be found in `build/python-api-src/Debug`
# How to use the library with PyCharm # How to use the library with PyCharm
See [separate page](pycharm.md). See [separate page](pycharm.md).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment