diff --git a/README.md b/README.md index 88a019fea969d0672290814b1bc679378adde23c..163f4198873498e51d8e70a2cc0cd1bf154acd8f 100644 --- a/README.md +++ b/README.md @@ -68,15 +68,19 @@ Then, set its version to 7.5.0: ## Code Generation -To generate the code and the DLLs use the following commands: +To generate the code and the static library use the following commands: npm install (if not already done) npm run generate && npm run build +To build in debug mode, use the following command: + + npm run generate && npm run buildDebug + You will find the header files in: /usr/local/include/worldStorageRestBedcppServer/ and the library file in: - /usr/local/lib/libworldStorageRestBedcppServer.so + /usr/local/lib/libworldStorageRestBedcppServer.a diff --git a/package.json b/package.json index 7c300ba8d228a36052b15de4c7bcf8e69d2d9be0..2a8c8c791fd77c41b05c21eba468b52fe6aad094 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "main": "index.js", "scripts": { "generate": "cd EtsiServerGen && java -jar /usr/local/lib/node_modules/@openapitools/openapi-generator-cli/versions/7.5.0.jar generate -i ../arf005/API/worldstorage/worldstorageopenapi.yaml --type-mappings=set=std::vector -g cpp-restbed-server -o . && cd patches && ./applyPatches.sh", - "build": "cd EtsiServerGen && conan install . --build=missing && cd build && cmake .. --preset conan-release && cd Release && cmake --build . && sudo make install" + "build": "cd EtsiServerGen && conan install . --build=missing && cd build && cmake .. --preset conan-release && cd Release && cmake --build . && sudo make install", + "buildDebug": "cd EtsiServerGen && conan install -s build_type=Debug . --build=missing && cd build && cmake .. --preset conan-debug && cd Debug && cmake --build . --config Debug && sudo make install" }, "devDependencies": { "@openapitools/openapi-generator-cli": "^2.7.0"