Home | History | Annotate | Download | only in system_api
      1 {
      2   'targets': [
      3     {
      4       'target_name': 'system_api-protos-gen',
      5       'type': 'none',
      6       'variables': {
      7         'proto_in_dir': 'dbus',
      8         'proto_out_dir': 'include/system_api/proto_bindings',
      9       },
     10       'sources': [
     11         '<(proto_in_dir)/mtp_storage_info.proto',
     12         '<(proto_in_dir)/mtp_file_entry.proto',
     13         '<(proto_in_dir)/field_trial_list.proto',
     14       ],
     15       'includes': ['../../platform2/common-mk/protoc.gypi'],
     16     },
     17     {
     18       'target_name': 'system_api-protos',
     19       'type': 'static_library',
     20       'standalone_static_library': 1,
     21       'dependencies': [
     22         'system_api-protos-gen',
     23       ],
     24       'sources': [
     25         '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/mtp_storage_info.pb.cc',
     26         '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/mtp_file_entry.pb.cc',
     27         '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/field_trial_list.pb.cc',
     28       ]
     29     },
     30     {
     31       'target_name': 'system_api-power_manager-protos-gen',
     32       'type': 'none',
     33       'variables': {
     34         'proto_in_dir': 'dbus/power_manager',
     35         'proto_out_dir': 'include/power_manager/proto_bindings',
     36       },
     37       'sources': [
     38         '<(proto_in_dir)/input_event.proto',
     39         '<(proto_in_dir)/peripheral_battery_status.proto',
     40         '<(proto_in_dir)/policy.proto',
     41         '<(proto_in_dir)/power_supply_properties.proto',
     42         '<(proto_in_dir)/suspend.proto',
     43         '<(proto_in_dir)/switch_states.proto',
     44       ],
     45       'includes': ['../../platform2/common-mk/protoc.gypi'],
     46     },
     47     {
     48       'target_name': 'system_api-power_manager-protos',
     49       'type': 'static_library',
     50       'standalone_static_library': 1,
     51       'dependencies': [
     52         'system_api-power_manager-protos-gen',
     53       ],
     54       'sources': [
     55         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/input_event.pb.cc',
     56         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/peripheral_battery_status.pb.cc',
     57         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/policy.pb.cc',
     58         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/power_supply_properties.pb.cc',
     59         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/suspend.pb.cc',
     60         '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/switch_states.pb.cc',
     61       ]
     62     },
     63     {
     64       'target_name': 'system_api-cryptohome-protos-gen',
     65       'type': 'none',
     66       'variables': {
     67         'proto_in_dir': 'dbus/cryptohome',
     68         'proto_out_dir': 'include/cryptohome/proto_bindings',
     69       },
     70       'sources': [
     71         '<(proto_in_dir)/key.proto',
     72         '<(proto_in_dir)/rpc.proto',
     73         '<(proto_in_dir)/signed_secret.proto',
     74       ],
     75       'includes': ['../../platform2/common-mk/protoc.gypi'],
     76     },
     77     {
     78       'target_name': 'system_api-cryptohome-protos',
     79       'type': 'static_library',
     80       'standalone_static_library': 1,
     81       'dependencies': [
     82         'system_api-cryptohome-protos-gen',
     83       ],
     84       'sources': [
     85         '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/key.pb.cc',
     86         '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/rpc.pb.cc',
     87         '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/signed_secret.pb.cc',
     88       ]
     89     },
     90     {
     91       'target_name': 'system_api-authpolicy-protos-gen',
     92       'type': 'none',
     93       'variables': {
     94         'proto_in_dir': 'dbus/authpolicy',
     95         'proto_out_dir': 'include/authpolicy/proto_bindings',
     96       },
     97       'sources': [
     98         '<(proto_in_dir)/active_directory_info.proto',
     99       ],
    100       'includes': ['../../platform2/common-mk/protoc.gypi'],
    101     },
    102     {
    103       'target_name': 'system_api-authpolicy-protos',
    104       'type': 'static_library',
    105       'standalone_static_library': 1,
    106       'dependencies': [
    107         'system_api-authpolicy-protos-gen',
    108       ],
    109       'sources': [
    110         '<(SHARED_INTERMEDIATE_DIR)/include/authpolicy/proto_bindings/active_directory_info.pb.cc',
    111       ]
    112     },
    113     {
    114       'target_name': 'system_api-biod-protos-gen',
    115       'type': 'none',
    116       'variables': {
    117         'proto_in_dir': 'dbus/biod',
    118         'proto_out_dir': 'include/biod/proto_bindings',
    119       },
    120       'sources': [
    121         '<(proto_in_dir)/constants.proto',
    122         '<(proto_in_dir)/messages.proto',
    123       ],
    124       'includes': ['../../platform2/common-mk/protoc.gypi'],
    125     },
    126     {
    127       'target_name': 'system_api-biod-protos',
    128       'type': 'static_library',
    129       'standalone_static_library': 1,
    130       'dependencies': [
    131         'system_api-biod-protos-gen',
    132       ],
    133       'sources': [
    134         '<(SHARED_INTERMEDIATE_DIR)/include/biod/proto_bindings/constants.pb.cc',
    135         '<(SHARED_INTERMEDIATE_DIR)/include/biod/proto_bindings/messages.pb.cc',
    136       ]
    137     },
    138     {
    139       'target_name': 'system_api-login_manager-protos-gen',
    140       'type': 'none',
    141       'variables': {
    142         'proto_in_dir': 'dbus/login_manager',
    143         'proto_out_dir': 'include/login_manager/proto_bindings',
    144       },
    145       'sources': [
    146         '<(proto_in_dir)/arc.proto',
    147       ],
    148       'includes': ['../../platform2/common-mk/protoc.gypi'],
    149     },
    150     {
    151       'target_name': 'system_api-login_manager-protos',
    152       'type': 'static_library',
    153       'standalone_static_library': 1,
    154       'dependencies': [
    155         'system_api-login_manager-protos-gen',
    156       ],
    157       'sources': [
    158         '<(SHARED_INTERMEDIATE_DIR)/include/login_manager/proto_bindings/arc.pb.cc',
    159       ]
    160     },
    161     {
    162       'target_name': 'system_api-chaps-protos-gen',
    163       'type': 'none',
    164       'variables': {
    165         'proto_in_dir': 'dbus/chaps',
    166         'proto_out_dir': 'include/chaps/proto_bindings',
    167       },
    168       'sources': [
    169         '<(proto_in_dir)/ck_structs.proto',
    170       ],
    171       'includes': ['../../platform2/common-mk/protoc.gypi'],
    172     },
    173     {
    174       'target_name': 'system_api-chaps-protos',
    175       'type': 'static_library',
    176       # system_api-chaps-protos' is used by a shared_library
    177       # object, so we need to build it with '-fPIC' instead of '-fPIE'.
    178       'cflags!': ['-fPIE'],
    179       'cflags': ['-fPIC'],
    180       'standalone_static_library': 1,
    181       'dependencies': [
    182         'system_api-chaps-protos-gen',
    183       ],
    184       'sources': [
    185         '<(SHARED_INTERMEDIATE_DIR)/include/chaps/proto_bindings/ck_structs.pb.cc',
    186       ]
    187     },
    188   ]
    189 }
    190