Skip to content

Instantly share code, notes, and snippets.

@RMKD
Last active October 31, 2016 11:40
Show Gist options
  • Select an option

  • Save RMKD/e0953369d21aa7e7ac22895ddcbf7ad9 to your computer and use it in GitHub Desktop.

Select an option

Save RMKD/e0953369d21aa7e7ac22895ddcbf7ad9 to your computer and use it in GitHub Desktop.

Revisions

  1. RMKD revised this gist Oct 31, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_for_macos.sh
    Original file line number Diff line number Diff line change
    @@ -15,10 +15,10 @@ cmake -G Xcode ..
    # in ./core/build use xcode's command line to build the dylib
    xcodebuild -project UtyMap.xcodeproj -target ALL_BUILD -configuration Release

    # change the libUtyMap.Shared.dylib to UtyMap.Shared.bundle and more to the project folder
    # change the libUtyMap.Shared.dylib to UtyMap.Shared.bundle and move to the project folder
    cp shared/Release/libUtyMap.Shared.dylib ../../unity/demo/Assets/Plugins/UtyMap.Shared.bundle

    # switch te the unity/library directory
    # switch the the unity/library directory
    cd ../../unity/library/

    # build with mono's xbuild
  2. RMKD revised this gist Oct 30, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_for_macos.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    # get the repository
    git clone https://github.com/reinterpretcat/utymap.git
    cd utymap

    # install the required dependencies (get from http://brew.sh if you don't already have it)
    brew install cmake boost protobuf
  3. RMKD created this gist Oct 30, 2016.
    27 changes: 27 additions & 0 deletions install_for_macos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # get the repository
    git clone https://github.com/reinterpretcat/utymap.git

    # install the required dependencies (get from http://brew.sh if you don't already have it)
    brew install cmake boost protobuf

    # set up a clean build directory
    mkdir code/build
    cd core/build

    # in ./core/build use cmake to generate an .xcodeproj file
    cmake -G Xcode ..

    # in ./core/build use xcode's command line to build the dylib
    xcodebuild -project UtyMap.xcodeproj -target ALL_BUILD -configuration Release

    # change the libUtyMap.Shared.dylib to UtyMap.Shared.bundle and more to the project folder
    cp shared/Release/libUtyMap.Shared.dylib ../../unity/demo/Assets/Plugins/UtyMap.Shared.bundle

    # switch te the unity/library directory
    cd ../../unity/library/

    # build with mono's xbuild
    xbuild /p:Configuration=Release UtyMap.Unity.sln

    # copy all the Uty dll files
    cp UtyMap.Unity/bin/Release/Uty*.dll ../../unity/demo/Assets/Plugins/