bld.bat 535 B

1234567891011121314151617181920212223
  1. CFLAGS="${CFLAGS} -O3"
  2. CXXFLAGS="${CXXFLAGS} -O3"
  3. mkdir "%SRC_DIR%"\build_cmake
  4. pushd "%SRC_DIR%"\build_cmake
  5. cmake ^
  6. -DBUILD_SHARED_LIBS=ON ^
  7. -DCMAKE_BUILD_TYPE=release ^
  8. -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
  9. -DPCRE2_SUPPORT_JIT=ON ^
  10. -GNinja ^
  11. ..
  12. if errorlevel 1 exit 1
  13. ninja
  14. if errorlevel 1 exit 1
  15. sed -ie "s/\$<TARGET_FILE:pcre2test>/pcre2test.exe/" pcre2_test.bat
  16. cp -r ..\testdata .
  17. if errorlevel 1 exit 1
  18. ninja test
  19. if errorlevel 1 exit 1
  20. ninja install
  21. if errorlevel 1 exit 1