mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
java: Created a general interface that is no longer included in each package and updated examples
Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com> Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
This commit is contained in:

committed by
sisinty sasmita patra

parent
e3a8b2fc13
commit
fe9254c004
@ -17,13 +17,26 @@ macro(add_example_with_path example_name jar_path jar_name)
|
||||
add_dependencies(${example_name} javaupm_${jar_name})
|
||||
endmacro()
|
||||
|
||||
macro(add_example_multiple_jars example_name example_jar_name jar_name_list)
|
||||
set(example_src "${example_name}.java")
|
||||
|
||||
set(list_of_jars "")
|
||||
foreach(jar_name ${jar_name_list})
|
||||
set(example_jar "${CMAKE_CURRENT_BINARY_DIR}/../../src/${jar_name}/upm_${jar_name}.jar")
|
||||
list(APPEND list_of_jars ${example_jar})
|
||||
endforeach()
|
||||
|
||||
add_jar(${example_name} SOURCES ${example_src} INCLUDE_JARS ${list_of_jars})
|
||||
add_dependencies(${example_name} javaupm_${example_jar_name})
|
||||
endmacro()
|
||||
|
||||
add_example(A110X_intrSample a110x)
|
||||
add_example(A110XSample a110x)
|
||||
add_example(ADC121C021Sample adc121c021)
|
||||
add_example(Adxl345Sample adxl345)
|
||||
add_example(Apds9002 apds9002)
|
||||
add_example(BISS0001Sample biss0001)
|
||||
add_example(BMPX8XSample bmpx8x)
|
||||
add_example_multiple_jars(BMPX8XSample bmpx8x "bmpx8x;interfaces")
|
||||
add_example(BuzzerSample buzzer)
|
||||
add_example(CJQ4435Sample cjq4435)
|
||||
add_example(DS1307Sample ds1307)
|
||||
@ -150,7 +163,7 @@ endif()
|
||||
if (JPEG_FOUND)
|
||||
add_example(VCAP_Example vcap)
|
||||
endif()
|
||||
add_example(BMP280_Example bmp280)
|
||||
add_example_multiple_jars(BMP280_Example bmp280 "bmp280;interfaces")
|
||||
add_example(BNO055_Example bno055)
|
||||
add_example(BMX055_Example bmx055)
|
||||
add_example(NMEAGPS_Example nmea_gps)
|
||||
@ -165,7 +178,7 @@ add_example(ECEZO_Example ecezo)
|
||||
add_example(IMS_Example ims)
|
||||
add_example(MB704X_Example mb704x)
|
||||
add_example(MCP2515_Example mcp2515)
|
||||
add_example(Ads1015Sample ads1x15)
|
||||
add_example_multiple_jars(Ads1015Sample ads1x15 "ads1x15;interfaces")
|
||||
add_example(MAX30100_Example max30100)
|
||||
add_example(Ads1115Sample ads1x15)
|
||||
add_example(SensorTemplateSample sensortemplate)
|
||||
@ -182,10 +195,10 @@ add_example_with_path(Lcm1602_i2cSample lcm1602 lcm1602)
|
||||
add_example_with_path(Lcm1602_parallelSample lcm1602 lcm1602)
|
||||
add_example_with_path(SSD1308_oledSample lcd i2clcd)
|
||||
add_example_with_path(SSD1327_oledSample lcd i2clcd)
|
||||
add_example_with_path(BME280_Example bmp280 bmp280)
|
||||
add_example_multiple_jars(BME280_Example bmp280 "bmp280;interfaces")
|
||||
|
||||
if(SWIG_VERSION VERSION_GREATER 3.0.8)
|
||||
add_example_with_path(BME280_InterfaceExample bmp280 bmp280)
|
||||
add_example_multiple_jars(BME280_InterfaceExample bmp280 "bmp280;interfaces")
|
||||
endif()
|
||||
|
||||
add_example_with_path(BMC150_Example bmx055 bmx055)
|
||||
|
Reference in New Issue
Block a user