{
    'variables': {
        'n_table_elements%': 1000,
        'have_log': 'true',
        'have_exp': 'true',
    },
    'targets': [
        {
            'target_name': 'math_functions',
            'type': 'static_library',
            'sources': [
                'my_sqrt.cc'
            ],
            'defines': [
                'NUMBER_OF_TABLE_ELEMENT=<(n_table_elements)'
            ],
            'actions': [
                {
                    'action_name': 'generate_precomputed_table',
                    'inputs': [
                        'make_table.py',
                    ],
                    'outputs': [
                        '<@(INTERMEDIATE_DIR)/Table.h',
                    ],
                    'include_dirs+': [
                        '<@(INTERMEDIATE_DIR)',
                    ],
                    'action':['python', 'make_table.py', '<@(n_table_elements)', '<@(_outputs)'],
                },
            ],
            'conditions': [
                ['have_log=="true" and have_exp=="true"', {
                    'defines': [
                        'HAVE_LOG',
                        'HAVE_EXP',
                    ],
                }],
            ],
        },
    ],
}
{
    'variables': {
        'n_table_elements%': 1000,
        'have_log': 'true',
        'have_exp': 'true',
    },
    'targets': [
        {
            'target_name': 'math_functions',
            'type': 'static_library',
            'sources': [
                'my_sqrt.cc'
            ],
            'defines': [
                'NUMBER_OF_TABLE_ELEMENT=<(n_table_elements)'
            ],
            'actions': [
                {
                    'action_name': 'generate_precomputed_table',
                    'inputs': [
                        'make_table.py',
                    ],
                    'outputs': [
                        '<@(INTERMEDIATE_DIR)/Table.h',
                    ],
                    'include_dirs+': [
                        '<@(INTERMEDIATE_DIR)',
                    ],
                    'action':['python', 'make_table.py', '<@(n_table_elements)', '<@(_outputs)'],
                },
            ],
            'conditions': [
                ['have_log=="true" and have_exp=="true"', {
                    'defines': [
                        'HAVE_LOG',
                        'HAVE_EXP',
                    ],
                }],
            ],
        },
    ],
}