2023-02-21 23:58:26 +00:00
|
|
|
add_compile_definitions( PCBNEW )
|
2016-02-29 19:08:03 +00:00
|
|
|
|
2018-10-12 06:17:15 +00:00
|
|
|
add_subdirectory(connectivity)
|
|
|
|
|
2013-09-10 17:26:44 +00:00
|
|
|
add_subdirectory(router)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2019-06-09 21:57:23 +00:00
|
|
|
# psnrouter depends on make_lexer outputs in common (bug #1285878 )
|
2014-02-27 22:56:16 +00:00
|
|
|
add_dependencies( pnsrouter pcbcommon )
|
|
|
|
|
2016-06-10 18:08:35 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swig )
|
2013-08-20 18:03:21 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# Infrequently needed headers go at end of search paths, append to INC_AFTER
|
2021-03-19 23:38:11 +00:00
|
|
|
set( INC_AFTER ${INC_AFTER} python/scripting )
|
2021-03-08 14:54:22 +00:00
|
|
|
set( INC_AFTER ${INC_AFTER} ${CMAKE_SOURCE_DIR}/common/swig )
|
2012-07-22 12:15:38 +00:00
|
|
|
|
2013-08-20 18:03:21 +00:00
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(
|
|
|
|
./dialogs
|
2012-06-05 19:07:33 +00:00
|
|
|
./autorouter
|
2023-10-07 01:19:25 +00:00
|
|
|
./generators
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
2021-08-29 23:33:08 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/3d-viewer/dialogs
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common
|
|
|
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
2014-01-07 20:41:32 +00:00
|
|
|
./exporters
|
2020-07-01 22:30:40 +00:00
|
|
|
./importers
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/utils/idftools
|
2018-01-29 17:09:18 +00:00
|
|
|
./specctra_import_export
|
2012-01-23 04:33:36 +00:00
|
|
|
${INC_AFTER}
|
|
|
|
)
|
|
|
|
|
2013-08-20 18:03:21 +00:00
|
|
|
set( PCBNEW_DIALOGS
|
2020-01-12 20:30:58 +00:00
|
|
|
dialogs/dialog_filter_selection.cpp
|
|
|
|
dialogs/dialog_filter_selection_base.cpp
|
2018-04-28 15:22:25 +00:00
|
|
|
dialogs/dialog_board_setup.cpp
|
2019-07-16 19:34:07 +00:00
|
|
|
dialogs/dialog_board_statistics.cpp
|
|
|
|
dialogs/dialog_board_statistics_base.cpp
|
2020-04-21 01:44:17 +00:00
|
|
|
dialogs/dialog_board_reannotate.cpp
|
2020-12-19 15:08:31 +00:00
|
|
|
dialogs/dialog_board_reannotate_base.cpp
|
2020-06-17 12:46:50 +00:00
|
|
|
dialogs/dialog_cleanup_graphics.cpp
|
|
|
|
dialogs/dialog_cleanup_graphics_base.cpp
|
2019-03-31 09:37:57 +00:00
|
|
|
dialogs/dialog_cleanup_tracks_and_vias.cpp
|
|
|
|
dialogs/dialog_cleanup_tracks_and_vias_base.cpp
|
2010-11-24 20:37:00 +00:00
|
|
|
dialogs/dialog_copper_zones.cpp
|
|
|
|
dialogs/dialog_copper_zones_base.cpp
|
2015-02-12 03:22:24 +00:00
|
|
|
dialogs/dialog_create_array.cpp
|
|
|
|
dialogs/dialog_create_array_base.cpp
|
2020-09-08 02:42:26 +00:00
|
|
|
dialogs/dialog_dimension_properties.cpp
|
|
|
|
dialogs/dialog_dimension_properties_base.cpp
|
2018-06-06 10:05:56 +00:00
|
|
|
dialogs/dialog_drc.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_drc_base.cpp
|
2023-08-18 17:44:54 +00:00
|
|
|
dialogs/dialog_footprint_associations.cpp
|
|
|
|
dialogs/dialog_footprint_associations_base.cpp
|
2023-09-26 17:31:45 +00:00
|
|
|
dialogs/dialog_footprint_checker.cpp
|
|
|
|
dialogs/dialog_footprint_checker_base.cpp
|
|
|
|
dialogs/dialog_footprint_chooser.cpp
|
2020-10-14 23:37:26 +00:00
|
|
|
dialogs/dialog_footprint_properties.cpp
|
|
|
|
dialogs/dialog_footprint_properties_base.cpp
|
2021-04-04 09:41:48 +00:00
|
|
|
dialogs/dialog_footprint_properties_fp_editor.cpp
|
|
|
|
dialogs/dialog_footprint_properties_fp_editor_base.cpp
|
2014-07-09 13:10:32 +00:00
|
|
|
dialogs/dialog_enum_pads.cpp
|
|
|
|
dialogs/dialog_enum_pads_base.cpp
|
2018-02-16 16:06:06 +00:00
|
|
|
dialogs/dialog_exchange_footprints.cpp
|
|
|
|
dialogs/dialog_exchange_footprints_base.cpp
|
2023-06-12 18:12:39 +00:00
|
|
|
dialogs/dialog_export_2581.cpp
|
|
|
|
dialogs/dialog_export_2581_base.cpp
|
2014-01-02 09:26:03 +00:00
|
|
|
dialogs/dialog_export_idf.cpp
|
|
|
|
dialogs/dialog_export_idf_base.cpp
|
2016-09-19 07:40:36 +00:00
|
|
|
dialogs/dialog_export_step.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_export_step_base.cpp
|
2022-10-05 18:51:38 +00:00
|
|
|
dialogs/dialog_export_step_process.cpp
|
|
|
|
dialogs/dialog_export_step_process_base.cpp
|
2018-06-13 12:20:29 +00:00
|
|
|
dialogs/dialog_export_svg.cpp
|
|
|
|
dialogs/dialog_export_svg_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_export_vrml.cpp
|
|
|
|
dialogs/dialog_export_vrml_base.cpp
|
2012-05-28 20:01:51 +00:00
|
|
|
dialogs/dialog_find.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_find_base.cpp
|
|
|
|
dialogs/dialog_footprint_wizard_list.cpp
|
|
|
|
dialogs/dialog_footprint_wizard_list_base.cpp
|
2022-11-03 02:30:46 +00:00
|
|
|
dialogs/dialog_gen_footprint_position.cpp
|
2018-02-16 16:06:06 +00:00
|
|
|
dialogs/dialog_gen_footprint_position_file_base.cpp
|
2017-10-04 09:57:59 +00:00
|
|
|
dialogs/dialog_gencad_export_options.cpp
|
2010-11-24 15:10:33 +00:00
|
|
|
dialogs/dialog_gendrill.cpp
|
|
|
|
dialogs/dialog_gendrill_base.cpp
|
2023-10-07 05:30:29 +00:00
|
|
|
dialogs/dialog_generators.cpp
|
|
|
|
dialogs/dialog_generators_base.cpp
|
2015-12-20 18:47:52 +00:00
|
|
|
dialogs/dialog_get_footprint_by_name_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_global_deletion.cpp
|
|
|
|
dialogs/dialog_global_deletion_base.cpp
|
2010-11-26 17:47:35 +00:00
|
|
|
dialogs/dialog_global_edit_tracks_and_vias.cpp
|
|
|
|
dialogs/dialog_global_edit_tracks_and_vias_base.cpp
|
2023-05-12 21:03:54 +00:00
|
|
|
dialogs/dialog_global_edit_teardrops.cpp
|
|
|
|
dialogs/dialog_global_edit_teardrops_base.cpp
|
2018-04-28 15:22:25 +00:00
|
|
|
dialogs/dialog_global_edit_text_and_graphics.cpp
|
|
|
|
dialogs/dialog_global_edit_text_and_graphics_base.cpp
|
2019-01-20 18:51:07 +00:00
|
|
|
dialogs/dialog_global_fp_lib_table_config.cpp
|
2020-12-28 22:16:21 +00:00
|
|
|
dialogs/dialog_group_properties.cpp
|
2020-09-24 01:05:46 +00:00
|
|
|
dialogs/dialog_group_properties_base.cpp
|
2018-07-05 16:14:19 +00:00
|
|
|
dialogs/dialog_push_pad_properties.cpp
|
|
|
|
dialogs/dialog_push_pad_properties_base.cpp
|
2023-09-19 10:23:35 +00:00
|
|
|
dialogs/dialog_shape_properties.cpp
|
|
|
|
dialogs/dialog_shape_properties_base.cpp
|
2023-10-23 17:23:24 +00:00
|
|
|
dialogs/dialog_reference_image_properties.cpp
|
|
|
|
dialogs/dialog_reference_image_properties_base.cpp
|
2018-04-28 15:22:25 +00:00
|
|
|
dialogs/dialog_import_settings.cpp
|
|
|
|
dialogs/dialog_import_settings_base.cpp
|
2020-10-01 22:47:38 +00:00
|
|
|
dialogs/dialog_imported_layers_base.cpp
|
|
|
|
dialogs/dialog_imported_layers.cpp
|
2020-09-21 23:32:07 +00:00
|
|
|
dialogs/dialog_rule_area_properties.cpp
|
|
|
|
dialogs/dialog_rule_area_properties_base.cpp
|
2013-08-30 19:28:31 +00:00
|
|
|
dialogs/dialog_layer_selection_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_move_exact.cpp
|
|
|
|
dialogs/dialog_move_exact_base.cpp
|
2023-01-17 08:40:15 +00:00
|
|
|
dialogs/dialog_import_netlist.cpp
|
|
|
|
dialogs/dialog_import_netlist_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_non_copper_zones_properties.cpp
|
|
|
|
dialogs/dialog_non_copper_zones_properties_base.cpp
|
|
|
|
dialogs/dialog_pad_properties.cpp
|
|
|
|
dialogs/dialog_pad_properties_base.cpp
|
|
|
|
dialogs/dialog_plot.cpp
|
|
|
|
dialogs/dialog_plot_base.cpp
|
2015-02-18 00:29:54 +00:00
|
|
|
dialogs/dialog_pns_diff_pair_dimensions.cpp
|
|
|
|
dialogs/dialog_pns_diff_pair_dimensions_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_pns_settings.cpp
|
|
|
|
dialogs/dialog_pns_settings_base.cpp
|
2017-05-10 13:55:03 +00:00
|
|
|
dialogs/dialog_position_relative.cpp
|
|
|
|
dialogs/dialog_position_relative_base.cpp
|
2018-10-03 07:50:05 +00:00
|
|
|
dialogs/dialog_print_pcbnew.cpp
|
2018-07-04 12:28:48 +00:00
|
|
|
dialogs/dialog_swap_layers.cpp
|
|
|
|
dialogs/dialog_swap_layers_base.cpp
|
2024-02-03 13:43:41 +00:00
|
|
|
dialogs/dialog_table_properties.cpp
|
|
|
|
dialogs/dialog_table_properties_base.cpp
|
2024-01-15 17:29:55 +00:00
|
|
|
dialogs/dialog_tablecell_properties.cpp
|
|
|
|
dialogs/dialog_tablecell_properties_base.cpp
|
2019-05-28 23:23:58 +00:00
|
|
|
dialogs/dialog_target_properties.cpp
|
2013-08-28 16:14:39 +00:00
|
|
|
dialogs/dialog_target_properties_base.cpp
|
2018-06-06 10:05:56 +00:00
|
|
|
dialogs/dialog_text_properties.cpp
|
|
|
|
dialogs/dialog_text_properties_base.cpp
|
2022-01-30 10:52:52 +00:00
|
|
|
dialogs/dialog_textbox_properties.cpp
|
|
|
|
dialogs/dialog_textbox_properties_base.cpp
|
2015-07-09 11:35:51 +00:00
|
|
|
dialogs/dialog_track_via_properties.cpp
|
|
|
|
dialogs/dialog_track_via_properties_base.cpp
|
2014-05-14 14:28:39 +00:00
|
|
|
dialogs/dialog_track_via_size.cpp
|
|
|
|
dialogs/dialog_track_via_size_base.cpp
|
2023-10-15 16:02:15 +00:00
|
|
|
dialogs/dialog_tuning_pattern_properties.cpp
|
|
|
|
dialogs/dialog_tuning_pattern_properties_base.cpp
|
2020-07-27 19:41:50 +00:00
|
|
|
dialogs/dialog_unused_pad_layers.cpp
|
|
|
|
dialogs/dialog_unused_pad_layers_base.cpp
|
2016-01-29 10:24:39 +00:00
|
|
|
dialogs/dialog_update_pcb.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_update_pcb_base.cpp
|
2023-10-06 18:40:49 +00:00
|
|
|
dialogs/panel_pcb_display_options.cpp
|
|
|
|
dialogs/panel_pcb_display_options_base.cpp
|
2020-06-17 20:45:03 +00:00
|
|
|
dialogs/panel_edit_options.cpp
|
|
|
|
dialogs/panel_edit_options_base.cpp
|
2018-07-20 17:46:56 +00:00
|
|
|
dialogs/panel_fp_lib_table.cpp
|
|
|
|
dialogs/panel_fp_lib_table_base.cpp
|
2020-11-16 00:45:43 +00:00
|
|
|
dialogs/panel_fp_editor_color_settings.cpp
|
|
|
|
dialogs/panel_fp_editor_defaults.cpp
|
|
|
|
dialogs/panel_fp_editor_defaults_base.cpp
|
2021-07-28 19:22:57 +00:00
|
|
|
dialogs/panel_fp_properties_3d_model.cpp
|
|
|
|
dialogs/panel_fp_properties_3d_model_base.cpp
|
2021-03-08 14:54:22 +00:00
|
|
|
dialogs/panel_pcbnew_action_plugins.cpp
|
|
|
|
dialogs/panel_pcbnew_action_plugins_base.cpp
|
2020-04-24 01:55:20 +00:00
|
|
|
dialogs/panel_pcbnew_color_settings.cpp
|
2020-07-07 01:33:03 +00:00
|
|
|
dialogs/panel_pcbnew_display_origin.cpp
|
|
|
|
dialogs/panel_pcbnew_display_origin_base.cpp
|
2021-01-26 11:41:47 +00:00
|
|
|
dialogs/panel_setup_constraints.cpp
|
|
|
|
dialogs/panel_setup_constraints_base.cpp
|
2021-08-25 23:14:36 +00:00
|
|
|
dialogs/panel_setup_formatting.cpp
|
|
|
|
dialogs/panel_setup_formatting_base.cpp
|
2018-04-28 15:22:25 +00:00
|
|
|
dialogs/panel_setup_mask_and_paste.cpp
|
|
|
|
dialogs/panel_setup_mask_and_paste_base.cpp
|
|
|
|
dialogs/panel_setup_layers.cpp
|
|
|
|
dialogs/panel_setup_layers_base.cpp
|
2020-05-16 22:30:30 +00:00
|
|
|
dialogs/panel_setup_rules.cpp
|
|
|
|
dialogs/panel_setup_rules_base.cpp
|
2023-05-12 21:03:54 +00:00
|
|
|
dialogs/panel_setup_teardrops.cpp
|
|
|
|
dialogs/panel_setup_teardrops_base.cpp
|
2018-04-28 15:22:25 +00:00
|
|
|
dialogs/panel_setup_text_and_graphics.cpp
|
|
|
|
dialogs/panel_setup_text_and_graphics_base.cpp
|
2018-07-17 06:52:33 +00:00
|
|
|
dialogs/panel_setup_tracks_and_vias.cpp
|
|
|
|
dialogs/panel_setup_tracks_and_vias_base.cpp
|
2023-10-15 16:02:15 +00:00
|
|
|
dialogs/panel_setup_tuning_patterns.cpp
|
|
|
|
dialogs/panel_setup_tuning_patterns_base.cpp
|
2012-05-09 17:37:25 +00:00
|
|
|
footprint_wizard.cpp
|
|
|
|
footprint_wizard_frame.cpp
|
2018-01-30 19:23:06 +00:00
|
|
|
footprint_wizard_frame_functions.cpp
|
2010-11-24 15:10:33 +00:00
|
|
|
)
|
|
|
|
|
2019-06-23 11:20:22 +00:00
|
|
|
set( PCBNEW_BRDSTACKUP_MGR
|
2019-09-09 18:30:43 +00:00
|
|
|
board_stackup_manager/dielectric_material.cpp
|
2019-06-23 11:20:22 +00:00
|
|
|
board_stackup_manager/stackup_predefined_prms.cpp
|
2021-02-24 21:20:11 +00:00
|
|
|
board_stackup_manager/panel_board_finish.cpp
|
|
|
|
board_stackup_manager/panel_board_finish_base.cpp
|
2019-07-27 19:09:43 +00:00
|
|
|
board_stackup_manager/panel_board_stackup.cpp
|
|
|
|
board_stackup_manager/panel_board_stackup_base.cpp
|
2019-09-06 09:26:27 +00:00
|
|
|
board_stackup_manager/board_stackup_reporter.cpp
|
2019-09-09 18:30:43 +00:00
|
|
|
board_stackup_manager/dialog_dielectric_list_manager_base.cpp
|
|
|
|
board_stackup_manager/dialog_dielectric_list_manager.cpp
|
2019-06-23 11:20:22 +00:00
|
|
|
)
|
|
|
|
|
2018-10-13 18:37:28 +00:00
|
|
|
set( PCBNEW_IMPORT_GFX
|
2023-10-18 13:20:34 +00:00
|
|
|
import_gfx/dialog_import_graphics.cpp
|
|
|
|
import_gfx/dialog_import_graphics_base.cpp
|
2018-10-13 18:37:28 +00:00
|
|
|
import_gfx/graphics_importer_pcbnew.cpp
|
|
|
|
)
|
2013-10-24 16:44:38 +00:00
|
|
|
|
2019-06-23 11:20:22 +00:00
|
|
|
|
2014-01-07 20:41:32 +00:00
|
|
|
set( PCBNEW_EXPORTERS
|
2019-04-08 00:09:07 +00:00
|
|
|
exporters/export_hyperlynx.cpp
|
2014-01-07 20:41:32 +00:00
|
|
|
exporters/export_d356.cpp
|
2018-04-18 09:31:33 +00:00
|
|
|
exporters/export_footprint_associations.cpp
|
2014-01-07 20:41:32 +00:00
|
|
|
exporters/export_gencad.cpp
|
2023-10-27 18:02:22 +00:00
|
|
|
exporters/export_gencad_writer.cpp
|
2014-01-07 20:41:32 +00:00
|
|
|
exporters/export_idf.cpp
|
2023-08-18 17:44:54 +00:00
|
|
|
exporters/export_svg.cpp
|
2022-10-08 22:00:05 +00:00
|
|
|
exporters/step/exporter_step.cpp
|
|
|
|
exporters/step/step_pcb_model.cpp
|
2022-05-19 22:53:42 +00:00
|
|
|
exporters/exporter_vrml.cpp
|
2022-11-07 12:15:55 +00:00
|
|
|
exporters/place_file_exporter.cpp
|
2014-01-07 20:41:32 +00:00
|
|
|
exporters/gen_drill_report_files.cpp
|
|
|
|
exporters/gendrill_Excellon_writer.cpp
|
2017-04-28 10:53:30 +00:00
|
|
|
exporters/gendrill_file_writer_base.cpp
|
|
|
|
exporters/gendrill_gerber_writer.cpp
|
2017-08-19 16:28:11 +00:00
|
|
|
exporters/gerber_jobfile_writer.cpp
|
2019-09-15 15:08:57 +00:00
|
|
|
exporters/gerber_placefile_writer.cpp
|
2014-01-07 20:41:32 +00:00
|
|
|
)
|
|
|
|
|
2017-02-23 08:00:37 +00:00
|
|
|
set( PCBNEW_MICROWAVE_SRCS
|
2020-04-01 17:24:31 +00:00
|
|
|
microwave/microwave_footprint.cpp
|
2017-02-23 08:00:37 +00:00
|
|
|
microwave/microwave_inductor.cpp
|
2020-04-01 17:24:31 +00:00
|
|
|
microwave/microwave_polygon.cpp
|
|
|
|
microwave/microwave_tool.cpp
|
2017-02-23 08:00:37 +00:00
|
|
|
)
|
|
|
|
|
2023-10-07 01:19:25 +00:00
|
|
|
set( PCBNEW_GENERATORS_SRCS
|
2023-10-18 13:50:48 +00:00
|
|
|
generators/pcb_tuning_pattern.cpp
|
2023-10-07 01:19:25 +00:00
|
|
|
)
|
|
|
|
|
2019-01-11 13:21:38 +00:00
|
|
|
set( PCBNEW_DRC_SRCS
|
2022-10-13 23:47:59 +00:00
|
|
|
drc/drc_interactive_courtyard_clearance.cpp
|
2023-08-13 18:44:31 +00:00
|
|
|
drc/drc_report.cpp
|
2020-09-11 16:24:27 +00:00
|
|
|
drc/drc_test_provider.cpp
|
2021-06-26 09:11:22 +00:00
|
|
|
drc/drc_test_provider_annular_width.cpp
|
2020-09-11 21:50:53 +00:00
|
|
|
drc/drc_test_provider_disallow.cpp
|
|
|
|
drc/drc_test_provider_connectivity.cpp
|
2022-07-11 19:26:56 +00:00
|
|
|
drc/drc_test_provider_connection_width.cpp
|
2020-09-11 16:24:27 +00:00
|
|
|
drc/drc_test_provider_copper_clearance.cpp
|
2022-05-06 13:46:24 +00:00
|
|
|
drc/drc_test_provider_physical_clearance.cpp
|
2020-09-15 20:49:51 +00:00
|
|
|
drc/drc_test_provider_courtyard_clearance.cpp
|
2020-09-11 16:24:27 +00:00
|
|
|
drc/drc_test_provider_edge_clearance.cpp
|
2022-04-23 10:33:53 +00:00
|
|
|
drc/drc_test_provider_footprint_checks.cpp
|
2021-05-20 09:35:31 +00:00
|
|
|
drc/drc_test_provider_hole_to_hole.cpp
|
2020-09-11 21:50:53 +00:00
|
|
|
drc/drc_test_provider_hole_size.cpp
|
2021-07-11 11:49:36 +00:00
|
|
|
drc/drc_test_provider_library_parity.cpp
|
|
|
|
drc/drc_test_provider_schematic_parity.cpp
|
2020-09-11 21:50:53 +00:00
|
|
|
drc/drc_test_provider_misc.cpp
|
2021-07-11 15:12:28 +00:00
|
|
|
drc/drc_test_provider_text_dims.cpp
|
2020-09-11 21:50:53 +00:00
|
|
|
drc/drc_test_provider_track_width.cpp
|
2021-08-08 13:37:14 +00:00
|
|
|
drc/drc_test_provider_zone_connections.cpp
|
2020-09-11 21:50:53 +00:00
|
|
|
drc/drc_test_provider_via_diameter.cpp
|
2021-08-12 16:58:30 +00:00
|
|
|
drc/drc_test_provider_solder_mask.cpp
|
2020-10-11 10:51:23 +00:00
|
|
|
drc/drc_test_provider_silk_clearance.cpp
|
2020-09-23 21:50:36 +00:00
|
|
|
drc/drc_test_provider_matched_length.cpp
|
2020-09-26 20:43:51 +00:00
|
|
|
drc/drc_test_provider_diff_pair_coupling.cpp
|
2021-08-11 13:01:30 +00:00
|
|
|
drc/drc_test_provider_sliver_checker.cpp
|
2019-01-11 13:21:38 +00:00
|
|
|
)
|
|
|
|
|
2019-11-17 12:58:38 +00:00
|
|
|
set( PCBNEW_NETLIST_SRCS
|
|
|
|
netlist_reader/board_netlist_updater.cpp
|
|
|
|
netlist_reader/netlist.cpp
|
|
|
|
)
|
|
|
|
|
2024-02-24 15:10:50 +00:00
|
|
|
set( ZONE_MANAGER_SRCS
|
|
|
|
zone_manager/board_edges_bounding_item.cpp
|
|
|
|
zone_manager/dialog_zone_manager.cpp
|
|
|
|
zone_manager/dialog_zone_manager_base.cpp
|
|
|
|
zone_manager/model_zones_overview_table.cpp
|
|
|
|
zone_manager/pane_zone_viewer.cpp
|
|
|
|
zone_manager/panel_zone_gal.cpp
|
|
|
|
zone_manager/panel_zone_properties.cpp
|
|
|
|
zone_manager/panel_zone_properties_base.cpp
|
|
|
|
zone_manager/zone_manager_preference.cpp
|
|
|
|
zone_manager/zone_painter.cpp
|
|
|
|
zone_manager/zones_container.cpp
|
|
|
|
)
|
|
|
|
|
2013-08-20 18:03:21 +00:00
|
|
|
set( PCBNEW_CLASS_SRCS
|
2017-12-27 16:06:27 +00:00
|
|
|
${PCBNEW_DIALOGS}
|
|
|
|
${PCBNEW_EXPORTERS}
|
2023-10-07 01:19:25 +00:00
|
|
|
${PCBNEW_GENERATORS_SRCS}
|
2019-01-11 13:21:38 +00:00
|
|
|
${PCBNEW_DRC_SRCS}
|
2019-11-17 12:58:38 +00:00
|
|
|
${PCBNEW_IMPORT_GFX}
|
|
|
|
${PCBNEW_NETLIST_SRCS}
|
2024-02-24 15:10:50 +00:00
|
|
|
${ZONE_MANAGER_SRCS}
|
2019-06-23 11:20:22 +00:00
|
|
|
${PCBNEW_BRDSTACKUP_MGR}
|
2017-12-27 16:06:27 +00:00
|
|
|
|
2017-03-22 13:51:07 +00:00
|
|
|
autorouter/spread_footprints.cpp
|
2018-08-24 10:54:45 +00:00
|
|
|
autorouter/ar_autoplacer.cpp
|
|
|
|
autorouter/ar_matrix.cpp
|
2020-08-31 11:54:07 +00:00
|
|
|
autorouter/autoplace_tool.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
|
2018-01-30 14:34:09 +00:00
|
|
|
action_plugin.cpp
|
2016-04-02 12:52:29 +00:00
|
|
|
array_creator.cpp
|
2021-08-23 23:10:21 +00:00
|
|
|
array_pad_number_provider.cpp
|
2010-11-24 15:10:33 +00:00
|
|
|
build_BOM_from_board.cpp
|
2020-06-17 12:46:50 +00:00
|
|
|
cleanup_item.cpp
|
2021-07-14 20:03:32 +00:00
|
|
|
convert_shape_list_to_polygon.cpp
|
2010-11-24 15:10:33 +00:00
|
|
|
cross-probing.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
edit.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
edit_track_width.cpp
|
2008-01-18 17:10:54 +00:00
|
|
|
files.cpp
|
2017-03-23 00:59:25 +00:00
|
|
|
footprint_info_impl.cpp
|
2018-01-30 19:23:06 +00:00
|
|
|
footprint_wizard.cpp
|
2018-01-31 16:09:26 +00:00
|
|
|
footprint_editor_utils.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
footprint_editor_settings.cpp
|
2018-07-29 15:33:58 +00:00
|
|
|
fp_tree_synchronizing_adapter.cpp
|
2023-09-26 17:31:45 +00:00
|
|
|
footprint_chooser_frame.cpp
|
2018-01-31 16:09:26 +00:00
|
|
|
footprint_edit_frame.cpp
|
2018-02-01 10:05:01 +00:00
|
|
|
footprint_libraries_utils.cpp
|
2018-01-31 16:09:26 +00:00
|
|
|
footprint_viewer_frame.cpp
|
2018-07-29 00:11:39 +00:00
|
|
|
fp_tree_model_adapter.cpp
|
|
|
|
generate_footprint_info.cpp
|
2020-06-17 12:46:50 +00:00
|
|
|
graphics_cleaner.cpp
|
2018-03-28 17:14:04 +00:00
|
|
|
grid_layer_box_helpers.cpp
|
|
|
|
grid_layer_box_helpers.h
|
2008-01-18 17:10:54 +00:00
|
|
|
initpcb.cpp
|
2018-02-01 10:05:01 +00:00
|
|
|
load_select_footprint.cpp
|
|
|
|
menubar_footprint_editor.cpp
|
|
|
|
menubar_pcb_editor.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
pcb_base_edit_frame.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
pcb_layer_box_selector.cpp
|
2018-01-29 20:58:58 +00:00
|
|
|
pcb_edit_frame.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
pcbnew_config.cpp
|
2022-10-04 01:53:37 +00:00
|
|
|
pcbnew_jobs_handler.cpp
|
2018-09-19 13:06:29 +00:00
|
|
|
pcbnew_printout.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
pcbnew_settings.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
pcbplot.cpp
|
2012-09-24 16:03:03 +00:00
|
|
|
plot_board_layers.cpp
|
|
|
|
plot_brditems_plotter.cpp
|
2018-01-29 17:09:18 +00:00
|
|
|
specctra_import_export/specctra.cpp
|
|
|
|
specctra_import_export/specctra_export.cpp
|
|
|
|
specctra_import_export/specctra_import.cpp
|
2021-02-02 23:16:37 +00:00
|
|
|
fp_text_grid_table.cpp
|
2019-05-06 08:56:24 +00:00
|
|
|
toolbars_footprint_editor.cpp
|
|
|
|
toolbars_footprint_viewer.cpp
|
|
|
|
toolbars_pcb_editor.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
tracks_cleaner.cpp
|
2016-05-25 09:52:43 +00:00
|
|
|
undo_redo.cpp
|
2017-11-30 16:22:45 +00:00
|
|
|
zone_filler.cpp
|
2020-12-23 14:24:03 +00:00
|
|
|
edit_zone_helpers.cpp
|
2013-11-10 19:15:09 +00:00
|
|
|
|
2020-06-16 18:15:14 +00:00
|
|
|
ratsnest/ratsnest.cpp
|
2020-07-16 14:11:31 +00:00
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
tools/board_editor_control.cpp
|
|
|
|
tools/board_inspection_tool.cpp
|
|
|
|
tools/board_reannotate_tool.cpp
|
2018-11-13 13:30:56 +00:00
|
|
|
tools/convert_tool.cpp
|
2014-02-27 16:29:08 +00:00
|
|
|
tools/drawing_tool.cpp
|
2021-03-14 15:12:51 +00:00
|
|
|
tools/drawing_stackup_table_tool.cpp
|
2020-09-14 17:54:14 +00:00
|
|
|
tools/drc_tool.cpp
|
2013-12-03 15:09:03 +00:00
|
|
|
tools/edit_tool.cpp
|
2022-05-20 09:08:33 +00:00
|
|
|
tools/edit_tool_move_fct.cpp
|
2024-01-15 17:29:55 +00:00
|
|
|
tools/pcb_edit_table_tool.cpp
|
2019-06-03 20:06:58 +00:00
|
|
|
tools/global_edit_tool.cpp
|
2020-09-24 01:05:46 +00:00
|
|
|
tools/group_tool.cpp
|
2020-12-25 16:26:32 +00:00
|
|
|
tools/footprint_editor_control.cpp
|
2023-06-30 23:31:58 +00:00
|
|
|
tools/item_modification_routine.cpp
|
2017-01-21 21:06:18 +00:00
|
|
|
tools/pad_tool.cpp
|
2020-12-16 13:31:32 +00:00
|
|
|
tools/pcb_control.cpp
|
|
|
|
tools/pcb_picker_tool.cpp
|
|
|
|
tools/pcb_selection.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tools/pcb_selection_conditions.cpp
|
2020-12-16 13:31:32 +00:00
|
|
|
tools/pcb_selection_tool.cpp
|
2019-05-12 11:49:58 +00:00
|
|
|
tools/pcb_tool_base.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tools/placement_tool.cpp
|
2021-01-16 23:17:32 +00:00
|
|
|
tools/pcb_point_editor.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tools/position_relative_tool.cpp
|
|
|
|
tools/tool_event_utils.cpp
|
|
|
|
tools/zone_create_helper.cpp
|
2017-11-23 16:20:27 +00:00
|
|
|
tools/zone_filler_tool.cpp
|
2023-10-07 01:19:25 +00:00
|
|
|
tools/generator_tool.cpp
|
|
|
|
tools/generator_tool_pns_proxy.cpp
|
2017-02-19 02:39:55 +00:00
|
|
|
|
|
|
|
footprint_preview_panel.cpp
|
2018-07-29 15:33:58 +00:00
|
|
|
footprint_tree_pane.cpp
|
2020-06-27 22:48:34 +00:00
|
|
|
|
2020-07-11 17:42:00 +00:00
|
|
|
widgets/appearance_controls.cpp
|
|
|
|
widgets/appearance_controls_base.cpp
|
2023-09-26 17:31:45 +00:00
|
|
|
widgets/panel_footprint_chooser.cpp
|
2020-06-27 22:48:34 +00:00
|
|
|
widgets/panel_selection_filter.cpp
|
|
|
|
widgets/panel_selection_filter_base.cpp
|
2022-11-27 23:23:07 +00:00
|
|
|
widgets/pcb_properties_panel.cpp
|
2022-09-14 02:59:57 +00:00
|
|
|
widgets/pcb_search_pane.cpp
|
|
|
|
widgets/search_handlers.cpp
|
2024-03-04 23:00:26 +00:00
|
|
|
widgets/net_inspector_panel.cpp
|
|
|
|
widgets/pcb_net_inspector_panel.cpp
|
2020-07-11 17:42:00 +00:00
|
|
|
|
2008-10-02 13:24:31 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2023-09-14 21:39:42 +00:00
|
|
|
set( PCBNEW_GIT_SRCS
|
|
|
|
git/kigit_pcb_merge.cpp
|
|
|
|
)
|
|
|
|
|
2017-02-23 08:00:37 +00:00
|
|
|
set( PCBNEW_SRCS
|
|
|
|
${PCBNEW_MICROWAVE_SRCS}
|
|
|
|
${PCBNEW_CLASS_SRCS}
|
|
|
|
${PCBNEW_DIALOGS}
|
2023-09-14 21:39:42 +00:00
|
|
|
${PCBNEW_GIT_SRCS}
|
2017-02-23 08:00:37 +00:00
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
|
|
|
# extra sources from common
|
2013-08-20 18:03:21 +00:00
|
|
|
set( PCBNEW_COMMON_SRCS
|
2012-04-25 19:33:24 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2013-08-20 18:03:21 +00:00
|
|
|
set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/swig/wx_python_helpers.cpp
|
2021-03-19 23:38:11 +00:00
|
|
|
python/scripting/pcbnew_action_plugins.cpp
|
|
|
|
python/scripting/pcbnew_footprint_wizards.cpp
|
|
|
|
python/scripting/pcbnew_scripting_helpers.cpp
|
|
|
|
python/scripting/pcbnew_scripting.cpp
|
2023-08-15 02:07:46 +00:00
|
|
|
python/scripting/pcbnew_utils_3d.cpp
|
2021-03-19 23:38:11 +00:00
|
|
|
python/scripting/pcb_scripting_tool.cpp
|
2013-01-13 00:34:16 +00:00
|
|
|
)
|
2012-03-17 15:17:13 +00:00
|
|
|
|
2020-05-06 00:47:20 +00:00
|
|
|
|
|
|
|
if( COMPILER_SUPPORTS_WARNINGS )
|
|
|
|
# Only compile our source files with the warnings, since the SWIG generated
|
|
|
|
# files contain a lot of warnings, we just ignore it.
|
2017-02-23 16:04:26 +00:00
|
|
|
set_source_files_properties(
|
2021-03-18 13:28:04 +00:00
|
|
|
${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
|
2020-05-06 00:47:20 +00:00
|
|
|
PROPERTIES COMPILE_FLAGS ${WARN_FLAGS_CXX}
|
2018-02-17 22:27:10 +00:00
|
|
|
)
|
2017-02-23 16:04:26 +00:00
|
|
|
endif()
|
|
|
|
|
2017-02-23 10:40:40 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# Disable all warnings for the SWIG file
|
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|
|
|
if( MSYS )
|
|
|
|
# For some reason the .cxx file generated by SWIG cannot be linked if compiled with debug options:
|
|
|
|
# it creates a *lot* of not found symbols. So compile it with release mode
|
2021-10-24 14:28:48 +00:00
|
|
|
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -w" )
|
2021-03-08 14:54:22 +00:00
|
|
|
else()
|
2021-10-24 14:28:48 +00:00
|
|
|
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-w" )
|
2020-05-06 00:47:20 +00:00
|
|
|
endif()
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2012-02-28 21:30:46 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
set( PCBNEW_SCRIPTING_SRCS
|
|
|
|
pcbnew_wrap.cxx
|
|
|
|
${PCBNEW_SCRIPTING_PYTHON_HELPERS}
|
|
|
|
)
|
2012-02-28 21:30:46 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
set( SWIG_FLAGS
|
|
|
|
-I${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
-I${CMAKE_SOURCE_DIR}/include
|
|
|
|
-I${CMAKE_SOURCE_DIR}/scripting
|
2021-03-21 02:43:26 +00:00
|
|
|
-I${CMAKE_SOURCE_DIR}/pcbnew/python/scripting
|
2021-03-08 14:54:22 +00:00
|
|
|
-I${CMAKE_SOURCE_DIR}/common/swig
|
2023-09-08 00:55:16 +00:00
|
|
|
-I${CMAKE_SOURCE_DIR}/libs/core/include
|
2021-03-08 14:54:22 +00:00
|
|
|
-I${CMAKE_SOURCE_DIR}/libs/kimath/include
|
2022-02-03 23:53:12 +00:00
|
|
|
-I${CMAKE_BINARY_DIR}
|
2021-03-08 14:54:22 +00:00
|
|
|
)
|
2012-07-16 14:48:51 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
if( DEBUG )
|
|
|
|
set( SWIG_FLAGS ${SWIG_FLAGS} -DDEBUG )
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2012-07-16 14:48:51 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# collect CFLAGS , and pass them to swig later
|
|
|
|
get_directory_property( DirDefs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS )
|
|
|
|
foreach( d ${DirDefs} )
|
|
|
|
set( SWIG_FLAGS ${SWIG_FLAGS} -D${d} )
|
|
|
|
endforeach()
|
2013-07-28 16:30:39 +00:00
|
|
|
|
2017-01-25 19:57:54 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# We deliberately do not use the CMake support for swig here,
|
|
|
|
# i.e. swig_add_footprint()) because we want full control.
|
2020-12-19 15:08:31 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# Avoid threading in SWIG (breaks threads in pcbnew)
|
2023-01-07 23:54:18 +00:00
|
|
|
set( SWIG_OPTS -python -c++ -nothreads -fastdispatch -fvirtual )
|
2013-01-13 00:34:16 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
set( SWIG_OPTS ${SWIG_OPTS} -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )
|
2013-09-20 17:01:21 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
if( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doxygen-xml )
|
|
|
|
set( SWIG_OPTS ${SWIG_OPTS} -DENABLE_DOCSTRINGS_FROM_DOXYGEN )
|
|
|
|
set( SWIG_OPTS ${SWIG_OPTS} -I${CMAKE_CURRENT_BINARY_DIR}/docstrings )
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2012-02-28 21:30:46 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx
|
|
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
|
|
|
|
|
2021-03-19 23:38:11 +00:00
|
|
|
DEPENDS python/swig/pcbnew.i
|
2022-12-15 23:25:52 +00:00
|
|
|
|
|
|
|
DEPFILE ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.d
|
2021-03-08 14:54:22 +00:00
|
|
|
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/docstrings
|
|
|
|
|
|
|
|
# Make docstrings.i available if it doesn't exist
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/docstrings/docstrings.i
|
|
|
|
|
|
|
|
COMMAND ${SWIG_EXECUTABLE}
|
2022-12-15 23:25:52 +00:00
|
|
|
${SWIG_OPTS} -MMD -MF ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.d -MT pcbnew/pcbnew_wrap.cxx -o ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx ${CMAKE_SOURCE_DIR}/pcbnew/python/swig/pcbnew.i
|
2021-03-08 14:54:22 +00:00
|
|
|
|
2022-09-14 10:50:59 +00:00
|
|
|
# was needed only with SWIG version < 4 to disable a python section "def swig_import_helper()"
|
|
|
|
# found in pcbnew.py but not existing in SWIG version >= 4
|
|
|
|
# So it is left here for documentation purpose
|
|
|
|
#COMMAND ${PYTHON_EXECUTABLE}
|
|
|
|
# ${CMAKE_SOURCE_DIR}/tools/build/fix_swig_imports.py ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
|
2021-03-08 14:54:22 +00:00
|
|
|
|
2022-12-15 23:25:52 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
2021-03-08 14:54:22 +00:00
|
|
|
)
|
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
if( UNIX AND NOT APPLE )
|
2013-09-23 15:19:39 +00:00
|
|
|
list( APPEND PCBNEW_EXTRA_LIBS rt )
|
2013-01-13 00:34:16 +00:00
|
|
|
endif()
|
2012-03-17 15:17:13 +00:00
|
|
|
|
2012-07-16 14:48:51 +00:00
|
|
|
|
2013-09-20 17:01:21 +00:00
|
|
|
###
|
|
|
|
# Doxygen python documentation
|
|
|
|
###
|
|
|
|
|
|
|
|
if( DOXYGEN_FOUND )
|
2021-03-08 14:54:22 +00:00
|
|
|
# create XML files from doxygen parsing
|
|
|
|
add_custom_target( doxygen-python-xml
|
|
|
|
${CMAKE_COMMAND} -E remove_directory doxygen-python-xml
|
|
|
|
COMMAND SOURCES_DIR=${CMAKE_SOURCE_DIR} ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_xml
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS Doxyfile_xml
|
|
|
|
COMMENT "building doxygen docs into directory doxygen-python/html"
|
|
|
|
)
|
2022-12-24 04:10:46 +00:00
|
|
|
|
2022-12-22 04:39:25 +00:00
|
|
|
add_dependencies( doxygen-python-xml version_header )
|
2013-09-20 17:01:21 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# create .i files from XML doxygen parsing, docstrings.i will include all of them
|
|
|
|
add_custom_target( xml-to-docstrings
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory docstrings
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory docstrings
|
2022-07-21 23:04:08 +00:00
|
|
|
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/build/extract_docstrings.py pcbnew.py doxygen-xml/xml docstrings
|
2021-03-08 14:54:22 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove pcbnew.py # force removal so it will be recreated later with the new docstrings
|
|
|
|
COMMENT "building docstring files"
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS pcbnew.py
|
|
|
|
)
|
2022-12-24 04:10:46 +00:00
|
|
|
|
2022-12-22 04:39:25 +00:00
|
|
|
add_dependencies( xml-to-docstrings doxygen-python-xml )
|
2013-09-20 17:01:21 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# The sources to give to the Python Doxygen target
|
|
|
|
set( DOXYGEN_PYTHON_SOURCES
|
2022-12-23 02:35:06 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
|
2021-03-08 14:54:22 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/python/plugins/FootprintWizardBase.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/python/plugins/PadArray.py )
|
|
|
|
|
|
|
|
# The Doxyfile expects a space-separated list in the env var
|
|
|
|
string(REPLACE ";" " " DOXYGEN_PYTHON_SOURCES_STR "${DOXYGEN_PYTHON_SOURCES}")
|
|
|
|
|
|
|
|
# Create doxygen-python html
|
|
|
|
add_custom_target( doxygen-python
|
|
|
|
${CMAKE_COMMAND} -E remove_directory doxygen-python
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E env
|
|
|
|
PYTHON_SOURCES_TO_DOC=${DOXYGEN_PYTHON_SOURCES_STR}
|
|
|
|
CMAKE_SOURCE_DIR=${CMAKE_SOURCE_DIR}
|
|
|
|
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_python
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS Doxyfile_python
|
|
|
|
DEPENDS ${DOXYGEN_PYTHON_SOURCES}
|
|
|
|
COMMENT "building doxygen docs into directory doxygen-python/html"
|
|
|
|
)
|
2022-12-24 04:10:46 +00:00
|
|
|
|
2022-12-22 04:39:25 +00:00
|
|
|
add_dependencies( doxygen-python version_header xml-to-docstrings )
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2012-07-16 14:48:51 +00:00
|
|
|
|
2021-12-29 04:54:27 +00:00
|
|
|
if( WIN32 )
|
|
|
|
if( MINGW )
|
|
|
|
# PCBNEW_RESOURCES variable is set by the macro.
|
|
|
|
mingw_resource_compiler( pcbnew )
|
|
|
|
else()
|
|
|
|
set( PCBNEW_RESOURCES ${CMAKE_SOURCE_DIR}/resources/msw/pcbnew.rc )
|
|
|
|
endif()
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2008-09-07 19:32:07 +00:00
|
|
|
|
2014-10-16 22:13:01 +00:00
|
|
|
|
2020-10-04 11:25:59 +00:00
|
|
|
# Create a C++ compilable string initializer containing markdown text into a *.h file:
|
2020-09-05 16:00:29 +00:00
|
|
|
add_custom_command(
|
2021-02-01 17:28:10 +00:00
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help_md.h
|
2020-09-05 16:00:29 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2020-10-04 11:25:59 +00:00
|
|
|
-DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help.md
|
2021-02-01 17:28:10 +00:00
|
|
|
-DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help_md.h
|
2023-01-04 00:12:56 +00:00
|
|
|
-P ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/markdown2C.cmake
|
|
|
|
DEPENDS ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/markdown2C.cmake ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help.md
|
2021-02-01 17:28:10 +00:00
|
|
|
COMMENT "creating ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help_md.h
|
2020-10-04 11:25:59 +00:00
|
|
|
from ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help.md"
|
2020-09-05 16:00:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties( dialogs/panel_setup_rules.cpp
|
|
|
|
PROPERTIES
|
2021-02-01 17:28:10 +00:00
|
|
|
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/panel_setup_rules_help_md.h
|
2020-09-05 16:00:29 +00:00
|
|
|
)
|
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2014-10-16 22:13:01 +00:00
|
|
|
# setup bundle
|
2023-11-16 17:10:50 +00:00
|
|
|
set( PCBNEW_RESOURCES pcbnew.icns pcbnew_doc.icns fpedit.icns fpedit_doc.icns )
|
|
|
|
set_source_files_properties(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/pcbnew.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/pcbnew_doc.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/fpedit.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/fpedit_doc.icns"
|
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources
|
2014-10-16 22:13:01 +00:00
|
|
|
)
|
|
|
|
set( MACOSX_BUNDLE_ICON_FILE pcbnew.icns )
|
2021-07-31 03:27:05 +00:00
|
|
|
set( MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad.kicad )
|
2014-10-16 22:13:01 +00:00
|
|
|
set( MACOSX_BUNDLE_NAME pcbnew )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
add_subdirectory( pcb_io/pcad )
|
|
|
|
add_subdirectory( pcb_io/altium )
|
|
|
|
add_subdirectory( pcb_io/cadstar )
|
|
|
|
add_subdirectory( pcb_io/easyeda )
|
|
|
|
add_subdirectory( pcb_io/easyedapro )
|
|
|
|
add_subdirectory( pcb_io/fabmaster )
|
|
|
|
add_subdirectory( pcb_io/ipc2581 )
|
2020-08-23 19:01:08 +00:00
|
|
|
|
2023-06-12 18:12:39 +00:00
|
|
|
set( PCBNEW_IO_LIBRARIES pcad2kicadpcb altium2pcbnew cadstar2pcbnew easyeda easyedapro fabmaster ipc2581 CACHE INTERNAL "")
|
2014-10-22 23:25:59 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# a very small program launcher for pcbnew_kiface
|
|
|
|
add_executable( pcbnew WIN32 MACOSX_BUNDLE
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
2014-10-26 19:54:48 +00:00
|
|
|
${PCBNEW_RESOURCES}
|
|
|
|
)
|
2020-01-22 23:27:20 +00:00
|
|
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp pcbnew.cpp PROPERTIES
|
2019-09-05 22:00:47 +00:00
|
|
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PCB_EDITOR;PGM_DATA_FILE_EXT=\"kicad_pcb\";BUILD_KIWAY_DLL"
|
2014-10-26 19:54:48 +00:00
|
|
|
)
|
|
|
|
target_link_libraries( pcbnew
|
|
|
|
#singletop # replaces common, giving us restrictive control and link warnings.
|
|
|
|
# There's way too much crap coming in from common yet.
|
|
|
|
common
|
2017-02-20 16:57:41 +00:00
|
|
|
gal
|
2021-03-08 14:54:22 +00:00
|
|
|
scripting
|
2023-04-04 23:34:46 +00:00
|
|
|
core
|
2022-01-02 02:21:49 +00:00
|
|
|
nlohmann_json
|
2022-09-27 13:30:17 +00:00
|
|
|
rectpack2d
|
2022-10-04 01:53:37 +00:00
|
|
|
argparse::argparse
|
2014-10-26 19:54:48 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2023-02-22 01:01:45 +00:00
|
|
|
target_link_options( pcbnew PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=pcbnew.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# the main pcbnew program, in DSO form.
|
2018-02-26 01:36:12 +00:00
|
|
|
add_library( pcbnew_kiface_objects OBJECT
|
2014-10-26 19:54:48 +00:00
|
|
|
pcbnew.cpp
|
|
|
|
${PCBNEW_SRCS}
|
|
|
|
${PCBNEW_COMMON_SRCS}
|
|
|
|
${PCBNEW_SCRIPTING_SRCS}
|
|
|
|
)
|
2018-02-26 01:36:12 +00:00
|
|
|
|
2019-07-03 09:08:55 +00:00
|
|
|
# auto-generate specctra_lexer.h and specctra_keywords.cpp
|
|
|
|
make_lexer(
|
|
|
|
pcbnew_kiface_objects
|
|
|
|
specctra_import_export/specctra.keywords
|
|
|
|
specctra_import_export/specctra_lexer.h
|
|
|
|
specctra_import_export/specctra_keywords.cpp
|
|
|
|
DSN
|
|
|
|
)
|
|
|
|
|
2022-01-02 02:21:49 +00:00
|
|
|
target_link_libraries( pcbnew_kiface_objects
|
|
|
|
PRIVATE
|
|
|
|
common
|
2023-04-04 23:34:46 +00:00
|
|
|
core
|
2022-01-02 02:21:49 +00:00
|
|
|
nlohmann_json
|
2022-09-27 13:30:17 +00:00
|
|
|
rectpack2d
|
2022-10-08 22:00:05 +00:00
|
|
|
gzip-hpp
|
2023-03-10 13:22:42 +00:00
|
|
|
Boost::boost
|
2023-03-19 20:03:04 +00:00
|
|
|
ZLIB::ZLIB
|
2022-10-08 22:00:05 +00:00
|
|
|
${OCC_LIBRARIES}
|
2019-12-19 17:20:49 +00:00
|
|
|
)
|
2019-01-23 15:58:16 +00:00
|
|
|
|
2022-01-02 02:21:49 +00:00
|
|
|
add_library( pcbnew_kiface MODULE )
|
2018-02-26 01:36:12 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
set_target_properties( pcbnew_kiface PROPERTIES
|
|
|
|
# Decorate OUTPUT_NAME with PREFIX and SUFFIX, creating something like
|
|
|
|
# _pcbnew.so, _pcbnew.dll, or _pcbnew.kiface
|
|
|
|
OUTPUT_NAME pcbnew
|
|
|
|
PREFIX ${KIFACE_PREFIX}
|
|
|
|
SUFFIX ${KIFACE_SUFFIX}
|
|
|
|
)
|
|
|
|
|
2017-03-22 13:11:08 +00:00
|
|
|
if ( KICAD_BUILD_TESTS )
|
|
|
|
if ( UNIX )
|
|
|
|
add_custom_command(TARGET pcbnew_kiface POST_BUILD
|
|
|
|
COMMAND ln -sf _pcbnew.kiface lib_pcbnew_kiface.so )
|
|
|
|
else()
|
|
|
|
add_custom_command(TARGET pcbnew_kiface POST_BUILD
|
|
|
|
COMMAND copy _pcbnew.kiface lib_pcbnew_kiface.dll )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
endif ()
|
|
|
|
|
2018-02-26 01:36:12 +00:00
|
|
|
set( PCBNEW_KIFACE_LIBRARIES
|
2022-01-02 02:21:49 +00:00
|
|
|
pcbnew_kiface_objects
|
2014-10-26 19:54:48 +00:00
|
|
|
3d-viewer
|
2018-10-13 18:37:28 +00:00
|
|
|
connectivity
|
2014-10-26 19:54:48 +00:00
|
|
|
pcbcommon
|
|
|
|
pnsrouter
|
2020-06-03 14:58:54 +00:00
|
|
|
kiplatform
|
2016-06-01 16:40:18 +00:00
|
|
|
common
|
2014-10-26 19:54:48 +00:00
|
|
|
gal
|
2021-03-08 14:54:22 +00:00
|
|
|
scripting
|
2023-04-04 23:34:46 +00:00
|
|
|
core
|
2014-10-26 19:54:48 +00:00
|
|
|
idf3
|
2020-10-04 11:25:59 +00:00
|
|
|
markdown_lib
|
2020-08-23 19:01:08 +00:00
|
|
|
${PCBNEW_IO_LIBRARIES}
|
2014-10-26 19:54:48 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${PYTHON_LIBRARIES}
|
2023-03-10 13:22:42 +00:00
|
|
|
Boost::headers
|
2014-10-26 19:54:48 +00:00
|
|
|
${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
|
|
|
|
)
|
2017-03-20 18:49:10 +00:00
|
|
|
|
2018-02-26 01:36:12 +00:00
|
|
|
|
2022-01-02 02:21:49 +00:00
|
|
|
target_link_libraries( pcbnew_kiface
|
|
|
|
PRIVATE
|
|
|
|
${PCBNEW_KIFACE_LIBRARIES}
|
|
|
|
)
|
2022-07-07 14:17:21 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
set_source_files_properties( pcbnew.cpp PROPERTIES
|
|
|
|
# The KIFACE is in pcbnew.cpp, export it:
|
|
|
|
COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"
|
|
|
|
)
|
|
|
|
|
2023-02-22 01:01:45 +00:00
|
|
|
target_link_options( pcbnew_kiface PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=_pcbnew.kiface.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
2014-03-22 11:35:33 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# if building pcbnew, then also build pcbnew_kiface if out of date.
|
|
|
|
add_dependencies( pcbnew pcbnew_kiface )
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2020-01-24 21:21:35 +00:00
|
|
|
if( WIN32 )
|
|
|
|
# Copy dynamic lib dependency to build dir to allow running directly
|
|
|
|
add_custom_command( TARGET pcbnew POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:kicad_3dsg>" "$<TARGET_FILE_DIR:pcbnew>"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# these 2 binaries are a matched set, keep them together:
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2014-10-26 19:54:48 +00:00
|
|
|
set_target_properties( pcbnew PROPERTIES
|
2019-12-26 12:42:25 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_BINARY_DIR}/pcbnew/Info.plist
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
)
|
2014-10-26 19:54:48 +00:00
|
|
|
|
|
|
|
# puts binaries into the *.app bundle while linking
|
|
|
|
set_target_properties( pcbnew_kiface PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_KIFACE_DIR}
|
2014-04-08 04:55:53 +00:00
|
|
|
)
|
2023-08-08 16:49:39 +00:00
|
|
|
|
|
|
|
set_target_properties( pcbnew PROPERTIES INSTALL_RPATH
|
|
|
|
"@executable_path/../Frameworks;@executable_path/../Frameworks/Python.framework" )
|
|
|
|
|
|
|
|
set_target_properties( pcbnew_kiface PROPERTIES INSTALL_RPATH
|
|
|
|
"@executable_path/../Frameworks;@executable_path/../Frameworks/Python.framework" )
|
|
|
|
set_target_properties( pcbnew_kiface PROPERTIES BUILD_WITH_INSTALL_RPATH 1 )
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# put individual bundle outside of main bundle as a first step
|
|
|
|
# will be pulled into the main bundle when creating main bundle
|
|
|
|
install( TARGETS pcbnew
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
)
|
2023-08-08 16:49:39 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
install( CODE "
|
2023-08-08 16:49:39 +00:00
|
|
|
set( KICAD_CMAKE_MODULE_PATH \"${KICAD_CMAKE_MODULE_PATH}\" )
|
|
|
|
set( KICAD_BIN \"${KICAD_BIN}\" )
|
|
|
|
set( OSX_BUNDLE_INSTALL_BIN_DIR \"${OSX_BUNDLE_INSTALL_BIN_DIR}\" )
|
|
|
|
set( OSX_BUNDLE_INSTALL_LIB_DIR \"${OSX_BUNDLE_INSTALL_LIB_DIR}\" )
|
|
|
|
set( OSX_BUNDLE_BUILD_KIFACE_DIR \"${OSX_BUNDLE_BUILD_KIFACE_DIR}\" )
|
|
|
|
" )
|
|
|
|
|
|
|
|
install( CODE [[
|
|
|
|
include( ${KICAD_CMAKE_MODULE_PATH}/InstallSteps/InstallMacOS.cmake )
|
|
|
|
|
|
|
|
# Install any dependencies
|
|
|
|
install_runtime_deps( "${KICAD_BIN}/pcbnew.app/Contents/MacOS/pcbnew"
|
|
|
|
"${OSX_BUNDLE_BUILD_KIFACE_DIR}/_pcbnew.kiface"
|
|
|
|
""
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
)
|
2023-08-08 16:49:39 +00:00
|
|
|
]] )
|
2014-10-26 19:54:48 +00:00
|
|
|
else()
|
2021-12-29 04:54:27 +00:00
|
|
|
if( MSVC )
|
|
|
|
target_sources( pcbnew_kiface PRIVATE ${CMAKE_SOURCE_DIR}/resources/msw/pcbnew-dll.rc )
|
|
|
|
endif()
|
|
|
|
|
2014-10-16 22:13:01 +00:00
|
|
|
install( TARGETS pcbnew
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
|
|
|
)
|
2014-10-26 19:54:48 +00:00
|
|
|
install( TARGETS pcbnew_kiface
|
2022-06-22 21:33:46 +00:00
|
|
|
DESTINATION ${KICAD_KIFACE}
|
2014-10-26 19:54:48 +00:00
|
|
|
COMPONENT binary
|
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
endif()
|
|
|
|
|
2021-07-15 03:31:56 +00:00
|
|
|
if( KICAD_WIN32_INSTALL_PDBS )
|
|
|
|
# Get the PDBs to copy over for MSVC
|
|
|
|
install(FILES $<TARGET_PDB_FILE:pcbnew> DESTINATION ${KICAD_BIN})
|
2022-06-22 21:33:46 +00:00
|
|
|
install(FILES $<TARGET_PDB_FILE:pcbnew_kiface> DESTINATION ${KICAD_KIFACE})
|
2021-07-15 03:31:56 +00:00
|
|
|
endif()
|
2015-12-21 14:55:31 +00:00
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( NOT APPLE )
|
2021-03-08 14:54:22 +00:00
|
|
|
install( FILES ${CMAKE_BINARY_DIR}/pcbnew/pcbnew.py DESTINATION ${PYTHON_DEST} )
|
|
|
|
else()
|
|
|
|
# put into bundle at build time, it is relocated at install
|
|
|
|
add_custom_target( ScriptingPcbnewPyCopy ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/pcbnew/pcbnew.py" "${PYTHON_DEST}/"
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
|
|
|
|
COMMENT "Copying pcbnew.py into ${PYTHON_DEST}"
|
2018-04-07 21:15:13 +00:00
|
|
|
)
|
2021-03-08 14:54:22 +00:00
|
|
|
add_dependencies( ScriptingPcbnewPyCopy ScriptingPythonDirectoryCreation )
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|
2012-04-08 14:25:49 +00:00
|
|
|
|
2021-03-08 14:54:22 +00:00
|
|
|
# python plugins
|
|
|
|
install( DIRECTORY ${PROJECT_SOURCE_DIR}/pcbnew/python/plugins/
|
|
|
|
DESTINATION ${KICAD_DATA}/scripting/plugins
|
|
|
|
FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Here is built the _pcbnew.{so,pyd} which is the native part of the pcbnew Python library
|
|
|
|
# when Python is used from the command line.
|
|
|
|
|
2022-03-12 13:03:46 +00:00
|
|
|
if( WIN32 )
|
2021-03-08 14:54:22 +00:00
|
|
|
install( FILES ${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.pyd DESTINATION ${PYTHON_DEST} )
|
|
|
|
set( PYMOD_EXT "pyd" )
|
2022-01-31 23:57:56 +00:00
|
|
|
elseif( APPLE )
|
2021-03-08 14:54:22 +00:00
|
|
|
# put everything into bundle at build time, it is relocated at install
|
|
|
|
add_custom_target( ScriptingModulesPcbnewSoCopy ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.so" "${PYTHON_DEST}/"
|
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.so
|
|
|
|
COMMENT "Copying _pcbnew.so into ${PYTHON_DEST}"
|
|
|
|
)
|
|
|
|
add_dependencies( ScriptingModulesPcbnewSoCopy ScriptingPythonDirectoryCreation )
|
|
|
|
set( PYMOD_EXT "so" )
|
2022-06-22 22:15:22 +00:00
|
|
|
else()
|
2022-06-23 22:15:49 +00:00
|
|
|
# Linux is the remaining platform, and all that has to be installed is the created symlink.
|
2021-03-08 14:54:22 +00:00
|
|
|
set( PYMOD_EXT "so" )
|
2022-06-22 22:15:22 +00:00
|
|
|
|
2022-06-23 22:15:49 +00:00
|
|
|
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/python/_pcbnew.${PYMOD_EXT} DESTINATION ${PYTHON_DEST} )
|
2021-03-08 14:54:22 +00:00
|
|
|
endif()
|
2017-01-25 19:57:54 +00:00
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2021-03-08 14:54:22 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
|
|
|
|
DEPENDS pcbnew_kiface
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${OSX_BUNDLE_BUILD_KIFACE_DIR}/_pcbnew.kiface _pcbnew.${PYMOD_EXT}
|
|
|
|
COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use."
|
|
|
|
)
|
2022-06-23 22:15:49 +00:00
|
|
|
|
|
|
|
set( PYTHON_FILES ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} )
|
2022-06-22 22:15:22 +00:00
|
|
|
elseif( WIN32 )
|
2021-03-08 14:54:22 +00:00
|
|
|
# For phase 1, copy _pcbnew.kiface to the python module.
|
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
|
|
|
|
DEPENDS pcbnew_kiface
|
2022-03-12 10:04:57 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy _pcbnew${KIFACE_SUFFIX} _pcbnew.${PYMOD_EXT}
|
2021-03-08 14:54:22 +00:00
|
|
|
COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use."
|
|
|
|
)
|
2022-06-23 22:15:49 +00:00
|
|
|
|
|
|
|
set( PYTHON_FILES ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} )
|
2022-06-22 23:27:35 +00:00
|
|
|
else()
|
|
|
|
# For linux, just create a symlink in the build directory to ensure the unit tests can find the library
|
2022-06-23 22:15:49 +00:00
|
|
|
# We don't actually do anything with this symlink though, since we create the proper one for the install
|
|
|
|
# later.
|
2022-06-22 23:27:35 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
|
|
|
|
DEPENDS pcbnew_kiface
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink _pcbnew${KIFACE_SUFFIX} _pcbnew.${PYMOD_EXT}
|
|
|
|
COMMENT "Symlinking _pcbnew.${PYMOD_EXT} to _pcbnew${KIFACE_SUFFIX}."
|
2021-03-08 14:54:22 +00:00
|
|
|
)
|
2022-06-23 22:15:49 +00:00
|
|
|
|
|
|
|
if( IS_ABSOLUTE ${KICAD_KIFACE} )
|
|
|
|
file( RELATIVE_PATH PCBNEW_PYTHON_SYMLINK ${PYTHON_FULL_DEST} ${KICAD_KIFACE}/_pcbnew${KIFACE_SUFFIX} )
|
|
|
|
else()
|
|
|
|
file( RELATIVE_PATH PCBNEW_PYTHON_SYMLINK ${PYTHON_FULL_DEST} ${CMAKE_INSTALL_PREFIX}/${KICAD_KIFACE}/_pcbnew${KIFACE_SUFFIX} )
|
|
|
|
endif()
|
|
|
|
|
2022-06-25 00:10:20 +00:00
|
|
|
file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python )
|
|
|
|
|
2022-06-23 22:15:49 +00:00
|
|
|
# This is the symlink we use in the installation directory, so it will not resolve in the build directory.
|
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python/_pcbnew.${PYMOD_EXT}
|
|
|
|
DEPENDS pcbnew_kiface
|
|
|
|
COMMAND ln -sf "${PCBNEW_PYTHON_SYMLINK}" "${CMAKE_CURRENT_BINARY_DIR}/python/_pcbnew.${PYMOD_EXT}"
|
|
|
|
COMMENT "Creating install symlink from _pcbnew.${PYMOD_EXT} to _pcbnew${KIFACE_SUFFIX}."
|
|
|
|
)
|
|
|
|
|
|
|
|
set( PYTHON_FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/python/_pcbnew.${PYMOD_EXT}
|
|
|
|
)
|
2014-10-08 18:41:36 +00:00
|
|
|
endif()
|
2014-02-07 18:53:54 +00:00
|
|
|
|
2022-06-22 23:27:35 +00:00
|
|
|
add_custom_target(
|
|
|
|
pcbnew_python_module ALL
|
2022-06-23 22:15:49 +00:00
|
|
|
DEPENDS ${PYTHON_FILES}
|
2022-06-22 23:27:35 +00:00
|
|
|
)
|
|
|
|
|
2017-01-25 19:57:54 +00:00
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2021-03-08 14:54:22 +00:00
|
|
|
# If we don't have wxPython, then we must create the site-packages directory
|
|
|
|
add_custom_target( ScriptingPythonDirectoryCreation ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory "${PYTHON_DEST}"
|
|
|
|
COMMENT "Creating Python library directory ${PYTHON_DEST}"
|
|
|
|
)
|
2013-08-20 18:03:21 +00:00
|
|
|
endif()
|