elif env.get('ROUTING') == 'EP':
defines.append('-DROUTING_EP=1')
+libs = []
+if env.get('SECURED'):
+ libs.append('-locpmapi')
+
pc_vars = {
'\@VERSION\@': project_version,
'\@PREFIX\@': user_prefix,
'\@EXEC_PREFIX\@': user_prefix,
'\@LIB_INSTALL_DIR\@': user_lib,
- '\@DEFINES\@': " ".join(defines)
+ '\@DEFINES\@': " ".join(defines),
+ '\@LIBS\@': " ".join(libs)
}
env.Substfile(pc_file, SUBST_DICT = pc_vars)
Version: @VERSION@
URL: https://www.iotivity.org
Requires:
-Libs: -L${libdir} -loc -loc_logger -loc_logger_core -loctbstack -lconnectivity_abstraction
+Libs: -L${libdir} -loc -loc_logger -loc_logger_core -loctbstack -lconnectivity_abstraction @LIBS@
Cflags: -I${includedir}/resource \
-I${includedir}/c_common \
-I${svcincludedir}/resource-encapsulation \