From c41aa53a26a5ab6e130f8607404b24f62d6dfaa7 Mon Sep 17 00:00:00 2001 From: Adam <893184+NotAdam@users.noreply.github.com> Date: Sun, 28 Nov 2021 20:30:58 +1100 Subject: [PATCH 1/4] remove appveyor and travis config, actions cleanup, remove unused target --- .appveyor.yml | 29 ------------------------- .github/workflows/build.yml | 4 +--- .travis.yml | 42 ------------------------------------- CMakeLists.txt | 2 +- 4 files changed, 2 insertions(+), 75 deletions(-) delete mode 100644 .appveyor.yml delete mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 70d4d921..00000000 --- a/.appveyor.yml +++ /dev/null @@ -1,29 +0,0 @@ -os: - - Visual Studio 2017 - -configuration: - - Debug - -platform: - - Win64 - -environment: - MSVC_DEFAULT_OPTIONS: ON - MYSQL_PWD: "Password12!" - -services: - - mysql - -before_build: - - set PATH="C:\\Program Files\\MySQL\\MySQL Server 5.7\\bin";%PATH% - - cd c:\projects\sapphire - - git submodule update --init - - mkdir build - - cd build - - cmake .. -G "Visual Studio 15 2017 Win64" - - cmake --build . --target ALL_BUILD --config Release - -build_script: - - cd bin - - copy "C:\Program Files\MySQL\MySQL Server 5.7\lib\libmysql.dll" libmysql.dll - - sh sql_import.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5e4dbba..e429459b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,11 +41,9 @@ jobs: submodules: recursive - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1.10.0 - - name: install deps & remove default garbage + - name: install deps run: | - $env:PATH choco install --no-progress mariadb ninja - choco list --local-only - name: cmake init run: | mkdir build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 375d4353..00000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -language: c++ - -sudo: enabled - -git: - depth: 5 - -matrix: - include: - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-7 - env: - - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" - -# Setup cache -cache: - directories: - - build - - .mtime_cache - -# Setup build matrix and dependencies -before_install: - - eval "${MATRIX_EVAL}" - - gem install mtime_cache --no-document - - sudo apt-get update - - sudo apt-get install -y libmysqlclient-dev - -# Build steps -script: - - $CXX --version - - mtime_cache src/**/*.{%{cpp}} -c .mtime_cache/cache.json - - mkdir -p build - - cd build - - cmake .. && make -j 3 - - cd bin - - bash sql_import.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index cb4fcae7..c46151f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ find_package( MySQL ) add_subdirectory( "deps/zlib" ) add_subdirectory( "deps/MySQL" ) add_subdirectory( "deps/datReader" ) -add_subdirectory( "deps/datReaderPs3" ) +#add_subdirectory( "deps/datReaderPs3" ) add_subdirectory( "deps/mysqlConnector" ) add_subdirectory( "deps/recastnavigation" ) From bb328817c1c6f42b0de8e78de9d17dc1e92dfaac Mon Sep 17 00:00:00 2001 From: Adam <893184+NotAdam@users.noreply.github.com> Date: Sun, 28 Nov 2021 20:42:51 +1100 Subject: [PATCH 2/4] classic adam maneuver, break it --- src/tools/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index f52bbe89..f65c3f5e 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -24,7 +24,7 @@ add_subdirectory( "discovery_parser" ) #add_subdirectory( "mob_parse" ) add_subdirectory( "pcb_reader" ) add_subdirectory( "nav_export" ) -add_subdirectory( "BattleNpcParserPs3" ) +#add_subdirectory( "BattleNpcParserPs3" ) #add_subdirectory( "event_object_parser" ) #add_subdirectory( "action_parse" ) #add_subdirectory( "questbattle_bruteforce" ) \ No newline at end of file From 8b6b1863a4202b3f2e6c668606f6e66ff162823d Mon Sep 17 00:00:00 2001 From: Alice Ogeda Date: Sun, 28 Nov 2021 16:46:06 -0300 Subject: [PATCH 3/4] remove cmake generated json; --- CMakeSettings.json | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 CMakeSettings.json diff --git a/CMakeSettings.json b/CMakeSettings.json deleted file mode 100644 index 751654bb..00000000 --- a/CMakeSettings.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - // See https://go.microsoft.com//fwlink//?linkid=834763 for more information about this file. - "configurations": [ - { - "name": "x64-Debug", - "generator": "Visual Studio 15 2017 Win64", - "configurationType": "Debug", - "buildRoot": "H:\\Sapphire\\Sapphire-2.3-Build", - "cmakeCommandArgs": "-DCMAKE_BUILD_TYPE=\"Debug\"", - "buildCommandArgs": "-m -v:minimal" - }, - { - "name": "x64-Release", - "generator": "Visual Studio 15 2017 Win64", - "configurationType": "Release", - "buildRoot": "H:\\Sapphire\\Sapphire-2.3-Build", - "cmakeCommandArgs": "", - "buildCommandArgs": "-m -v:minimal" - } - ] -} From 6c0f428fea9af05c28ffed4c405cdf9f8056018c Mon Sep 17 00:00:00 2001 From: Alice Ogeda Date: Sun, 28 Nov 2021 16:59:47 -0300 Subject: [PATCH 4/4] fix mariadb cmake find lib/bin; --- cmake/FindMySQL.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/FindMySQL.cmake b/cmake/FindMySQL.cmake index a373d68b..eb43d0d2 100644 --- a/cmake/FindMySQL.cmake +++ b/cmake/FindMySQL.cmake @@ -127,8 +127,8 @@ if( WIN32 ) "${PROGRAM_FILES_64}/MariaDB 10.3/lib" "${PROGRAM_FILES_64}/MariaDB 10.4/lib" "${PROGRAM_FILES_64}/MariaDB 10.5/lib" - "${PROGRAM_FILES_64}/MariaDB 10.6/include/mysql" - "${PROGRAM_FILES_64}/MariaDB 10.7/include/mysql" + "${PROGRAM_FILES_64}/MariaDB 10.6/lib" + "${PROGRAM_FILES_64}/MariaDB 10.7/lib" "${PROGRAM_FILES_64}/MySQL/MySQL Server 5.7/lib" "${PROGRAM_FILES_64}/MySQL/MySQL Server 5.7/lib/opt" "${PROGRAM_FILES_64}/MySQL/lib" @@ -184,8 +184,8 @@ if( WIN32 ) "${PROGRAM_FILES_64}/MariaDB 10.3/bin" "${PROGRAM_FILES_64}/MariaDB 10.4/bin" "${PROGRAM_FILES_64}/MariaDB 10.5/bin" - "${PROGRAM_FILES_64}/MariaDB 10.6/include/mysql" - "${PROGRAM_FILES_64}/MariaDB 10.7/include/mysql" + "${PROGRAM_FILES_64}/MariaDB 10.6/bin" + "${PROGRAM_FILES_64}/MariaDB 10.7/bin" "${PROGRAM_FILES_64}/MySQL/MySQL Server 5.7/bin" "${PROGRAM_FILES_64}/MySQL/MySQL Server 5.7/bin/opt" "${PROGRAM_FILES_64}/MySQL/bin"