lib/arli/lock/formats/template/Arlifile.cmake.erb in arli-1.1.0 vs lib/arli/lock/formats/template/Arlifile.cmake.erb in arli-1.2.1

- old
+ new

@@ -8,12 +8,15 @@ # curious as to how you can build complex Arduino Projects using Arli, # we suggest that you run the following commands to explore Arli: # # arli generate MyTestProject --workspace ~/workspace # cd ~/workspace/MyTestProject -# bin/setup -# bin/build src +# mkdir build; cd build +# cmake .. +# make <— builds your firmware +# make upload <— uploads your firmware to the device +# make MyTestProject-serial <— starts a screen session with serial connection # # And you should see a binary image built for the default board, or the # board you specified in the Arlifile. # # For more info: @@ -30,20 +33,19 @@ <%= library.name %><% end %>) set(ARLI_ARDUINO_LIBS <% arduino_libraries.each do |library| %> <%= library.name %><% end %>) -<% device_libraries_headers_only.each do |library| %> -set(<%= library.name %>_ONLY_HEADER yes)<% end %> -<% custom_libraries_headers_only.each do |library| %> -set(<%= library.canonical_dir %>_ONLY_HEADER yes)<% end %> +<% libraries.each do |library| %><% if library.depends %><%= cmake_dependencies(library) %><% end %><% end %> +<% device_libraries_headers_only.each do |library| %>set(<%= library.name %>_ONLY_HEADER yes)<% end %> +<% custom_libraries_headers_only.each do |library| %>set(<%= library.canonical_dir %>_ONLY_HEADER yes)<% end %> + include(Arli) arli_detect_serial_device("/dev/null") -arli_detect_board("<%= board %>" "<%= cpu %>") -message(STATUS "device: [${BOARD_DEVICE}], board: [${BOARD_NAME}], cpu: [${BOARD_CPU}] <<<") +<% if board && cpu %>arli_detect_board("<%= board %>" "<%= cpu %>")<% end %> -arli_build_all_libraries() +message(STATUS "HARDWARE:\n • BOARD_DEVICE=[${BOARD_DEVICE}]\n • BOARD_NAME=[${BOARD_NAME}]\n • BOARD_CPU=[${BOARD_CPU}]") - +arli_build_all_libraries()