+ if 'CLIENT' in rd_mode or 'SERVER' in rd_mode:
+ # On Windows:
+ # - octbstack.dll is exporting resource_directory C APIs
+ # - resource_directory.lib contains just the implementation of the C++ RD APIs
+ liboctbstack_env.PrependUnique(LIBS = ['resource_directory_internal'])
+
+ if 'CLIENT' in rd_mode:
+ liboctbstack_env.Textfile(target = 'octbstack_temp1.def', source = [File('octbstack_product.def'), File('octbstack_rd_client.def')])
+ else:
+ liboctbstack_env.Textfile(target = 'octbstack_temp1.def', source = [File('octbstack_product.def')])
+
+ if 'SERVER' in rd_mode:
+ liboctbstack_env.Textfile(target = 'octbstack_temp2.def', source = [File('octbstack_temp1.def'), File('octbstack_rd_server.def')])
+ else:
+ liboctbstack_env.Textfile(target = 'octbstack_temp2.def', source = [File('octbstack_temp1.def')])
+