Kaydet (Commit) 369b84e8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

We don't build libxsec_xmlsec for Android currently

(Because we don't build NSS for Android, so it would be pointless to build
libxsec_xmlsec. Or something like that. No doubt at some stage somebody will
get the great idea that we need to build NSS for Android, too. But postpone
the pain.)

Python experts, feel free to generate the ifdefs in this script in a more
elegant fashion. Surely it would be better to somehow mark those entries in
the table that should be optional with the corresponding condition, instead of
hardcoding tests for 'sb_component_getFactory' and
'xsec_xmlsec_component_getFactory' in four places.

Change-Id: I69255ab4966605849a2f3335d45a2bc0366f3ab9
üst 43983f88
......@@ -198,9 +198,13 @@ if options.groups:
for (factory_name,factory_function) in factory_map[factory_group]:
if factory_function == 'sb_component_getFactory':
print ('#ifdef ANDROID')
if factory_function == 'xsec_xmlsec_component_getFactory':
print ('#ifndef ANDROID')
print ('void * '+factory_function+'( const char* , void* , void* );')
if factory_function == 'sb_component_getFactory':
print ('#endif')
if factory_function == 'xsec_xmlsec_component_getFactory':
print ('#endif')
print ('')
if options.groups:
......@@ -219,9 +223,13 @@ if options.groups:
for (factory_name,factory_function) in factory_map[factory_group]:
if factory_function == 'sb_component_getFactory':
print ('#ifdef ANDROID')
if factory_function == 'xsec_xmlsec_component_getFactory':
print ('#ifndef ANDROID')
print (' { "'+factory_name+'", '+factory_function+' },')
if factory_function == 'sb_component_getFactory':
print ('#endif')
if factory_function == 'xsec_xmlsec_component_getFactory':
print ('#endif')
print ("""
{ 0, 0 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment