leducp commented on issue #12362:
URL: https://github.com/apache/nuttx/issues/12362#issuecomment-2126339877

   Here after our conan profile for NuttX:
   ```
   [settings]
   os=baremetal
   arch=armv7
   compiler=gcc
   compiler.version=12
   compiler.libcxx=libstdc++11
   compiler.cppstd=17
   
   [options]
   
   [tool_requires]
   
   [conf]
   tools.cmake.cmaketoolchain:user_toolchain=["/src/wdc_build/nuttx.cmake"]
   
   [buildenv]
   CONAN_CMAKE_GENERATOR=Ninja
   CONAN_CMAKE_TOOLCHAIN_FILE=/build/nuttx/scripts/toolchain.cmake
   CC=@CMAKE_C_COMPILER@
   CXX=@CMAKE_CXX_COMPILER@
   CFLAGS=@ARCHCPUFLAGS@ @ARCHCFLAGS@ -DCONFIG_WCHAR_BUILTIN -D__NuttX__ 
-isystem /build/nuttx/include
   CXXFLAGS=@ARCHCPUFLAGS@ @ARCHCXXFLAGS@ -DCONFIG_WCHAR_BUILTIN -D__NuttX__ 
-isystem /build/nuttx/include/cxx -isystem /build/nuttx/include
   ```
   
   This file is a template that can be filled with a CMake script like this one:
   ```
   include(/build/nuttx/scripts/target.cmake)
   
   configure_file(
       /src/conan/profiles/nuttx.in
       /build/nuttx/conan_profile
   )
   ```
   
   This template could be generated directly by NuttX during the export phase, 
but I didn't have the time to do it yet. We also lazily copy a few variables of 
the export that are not exposed through CMake yet (the includes paths).  Theses 
are mandatory for conan package that do not consume CMake toolchain directly.
   
   So as you can see, we are feeding conan with mainly the NuttX export :)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to