RD client features in base layer
[platform/upstream/iotivity.git] / resource / examples / SConscript
index c85806d..ba49690 100644 (file)
@@ -79,6 +79,12 @@ if examples_env.get('WITH_CLOUD'):
 if target_os in ['msys_nt', 'windows']:
        examples_env.AppendUnique(LIBS = ['Comctl32', 'Gdi32', 'User32'])
 
+if examples_env.get('LOGGING'):
+       examples_env.AppendUnique(CPPDEFINES = ['TB_LOG'])
+
+if 'CLIENT' in examples_env.get('RD_MODE'):
+       examples_env.AppendUnique(CPPDEFINES = ['RD_CLIENT'])
+
 def make_single_file_cpp_program(program_name):
        return examples_env.Program(program_name, program_name + ".cpp")
 
@@ -103,7 +109,12 @@ if target_os not in ['windows', 'msys_nt']:
                'groupserver',
                'groupclient',
                'lightserver',
-               'threadingsample',
+               'threadingsample'
+               ]
+
+if 'CLIENT' in examples_env.get('RD_MODE'):
+       example_names += [
+               'rdclient'
                ]
 
 examples = map(make_single_file_cpp_program, example_names)