Commit e9ac77fa authored by Jerome Royan's avatar Jerome Royan
Browse files

add npm command to build in Debug mode

parent 88f18e6d
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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
+2 −1
Original line number Diff line number Diff line
@@ -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"