2020-05-06 00:47:20 +00:00
|
|
|
# Add all the warnings to the files
|
|
|
|
if( COMPILER_SUPPORTS_WARNINGS )
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARN_FLAGS_CXX}")
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WARN_FLAGS_C}")
|
2017-02-23 10:40:40 +00:00
|
|
|
endif()
|
|
|
|
|
2022-07-31 15:19:51 +00:00
|
|
|
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|
|
|
if( MSYS )
|
|
|
|
# For some reason the big file sim/ngspice_models.cpp creates an issue when
|
|
|
|
# compiled in debug mode on msys2
|
|
|
|
# (Probably some out of memory issue that crashes Eeschema at start)
|
|
|
|
# So compile it in release mode that generates much smaller binaries
|
|
|
|
set_source_files_properties( sim/ngspice_models.cpp PROPERTIES COMPILE_FLAGS "-O2" )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
# Add ngspice to eeschema
|
|
|
|
set( INC_AFTER ${INC_AFTER} ${NGSPICE_INCLUDE_DIR} )
|
2018-10-29 13:23:03 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
# Find out the exact libngspice file name
|
|
|
|
get_filename_component( NGSPICE_DLL_ABSPATH "${NGSPICE_DLL}" ABSOLUTE )
|
|
|
|
get_filename_component( NGSPICE_DLL_FILE "${NGSPICE_DLL_ABSPATH}" NAME )
|
2018-10-29 13:23:03 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
set_property( SOURCE sim/ngspice.cpp
|
|
|
|
APPEND PROPERTY COMPILE_DEFINITIONS
|
|
|
|
NGSPICE_DLL_FILE="${NGSPICE_DLL_FILE}"
|
|
|
|
)
|
2016-08-12 13:56:51 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common
|
|
|
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
|
|
|
${CMAKE_SOURCE_DIR}/libs/sexpr/include
|
2012-01-23 04:33:36 +00:00
|
|
|
${INC_AFTER}
|
2022-01-31 19:48:53 +00:00
|
|
|
./dialogs
|
|
|
|
./libview
|
|
|
|
./symbol_editor
|
|
|
|
./tools
|
|
|
|
./widgets
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
set( EESCHEMA_SCH_IO
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/sch_io_lib_cache.cpp
|
2020-08-23 19:01:08 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
sch_io/sch_io.cpp
|
|
|
|
sch_io/sch_io_mgr.cpp
|
2020-09-08 19:51:22 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# KiCad IO plugin
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/kicad_sexpr/sch_io_kicad_sexpr.cpp
|
|
|
|
sch_io/kicad_sexpr/sch_io_kicad_sexpr_lib_cache.cpp
|
|
|
|
sch_io/kicad_sexpr/sch_io_kicad_sexpr_common.cpp
|
|
|
|
sch_io/kicad_sexpr/sch_io_kicad_sexpr_parser.cpp
|
2020-09-08 19:51:22 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Legacy IO plugin
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/kicad_legacy/sch_io_kicad_legacy_lib_cache.cpp
|
|
|
|
sch_io/kicad_legacy/sch_io_kicad_legacy.cpp
|
|
|
|
sch_io/kicad_legacy/sch_io_kicad_legacy_helpers.cpp
|
2023-04-22 20:17:08 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# HTTP IO plugin
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/http_lib/sch_io_http_lib.cpp
|
2023-04-22 20:17:08 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Database IO plugin
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/database/sch_io_database.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
|
|
|
# Eagle IO plugin
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/eagle/sch_io_eagle.cpp
|
2023-09-06 11:58:39 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Altium IO plugin
|
|
|
|
sch_io/altium/altium_parser_sch.cpp
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/altium/sch_io_altium.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
|
|
|
# Cadstar IO plugin
|
|
|
|
sch_io/cadstar/cadstar_sch_archive_loader.cpp
|
|
|
|
sch_io/cadstar/cadstar_sch_archive_parser.cpp
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/cadstar/sch_io_cadstar_archive.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
|
|
|
# LTSpice IO plugin
|
|
|
|
sch_io/ltspice/ltspice_schematic.cpp
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/ltspice/sch_io_ltspice.cpp
|
|
|
|
sch_io/ltspice/sch_io_ltspice_parser.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
|
|
|
# EasyEDA IO plugin
|
|
|
|
sch_io/easyeda/sch_easyeda_parser.cpp
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/easyeda/sch_io_easyeda.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
|
|
|
# EasyEDA Pro IO plugin
|
|
|
|
sch_io/easyedapro/sch_easyedapro_parser.cpp
|
2023-12-24 00:31:24 +00:00
|
|
|
sch_io/easyedapro/sch_io_easyedapro.cpp
|
2023-09-06 11:58:39 +00:00
|
|
|
)
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
set( EESCHEMA_DLGS
|
2013-06-07 20:56:55 +00:00
|
|
|
dialogs/dialog_annotate.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_annotate_base.cpp
|
2013-06-14 14:59:52 +00:00
|
|
|
dialogs/dialog_bom.cpp
|
|
|
|
dialogs/dialog_bom_base.cpp
|
2020-08-13 17:51:26 +00:00
|
|
|
dialogs/dialog_change_symbols.cpp
|
|
|
|
dialogs/dialog_change_symbols_base.cpp
|
2023-02-26 23:39:31 +00:00
|
|
|
dialogs/dialog_database_lib_settings_base.cpp
|
|
|
|
dialogs/dialog_database_lib_settings.cpp
|
2021-06-14 18:00:08 +00:00
|
|
|
dialogs/dialog_edit_symbols_libid.cpp
|
|
|
|
dialogs/dialog_edit_symbols_libid_base.cpp
|
2020-12-19 15:08:31 +00:00
|
|
|
dialogs/dialog_eeschema_page_settings.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_erc.cpp
|
|
|
|
dialogs/dialog_erc_base.cpp
|
2023-01-11 14:17:36 +00:00
|
|
|
dialogs/dialog_export_netlist.cpp
|
|
|
|
dialogs/dialog_export_netlist_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/dialog_field_properties.cpp
|
|
|
|
dialogs/dialog_field_properties_base.cpp
|
2019-06-30 22:06:34 +00:00
|
|
|
dialogs/dialog_global_edit_text_and_graphics.cpp
|
|
|
|
dialogs/dialog_global_edit_text_and_graphics_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/dialog_global_sym_lib_table_config.cpp
|
2022-11-18 21:07:38 +00:00
|
|
|
dialogs/dialog_ibis_parser_reporter.cpp
|
|
|
|
dialogs/dialog_ibis_parser_reporter_base.cpp
|
2022-07-07 14:17:21 +00:00
|
|
|
dialogs/dialog_image_properties.cpp
|
|
|
|
dialogs/dialog_image_properties_base.cpp
|
2020-06-24 17:35:33 +00:00
|
|
|
dialogs/dialog_junction_props.cpp
|
|
|
|
dialogs/dialog_junction_props_base.cpp
|
2021-10-12 20:05:37 +00:00
|
|
|
dialogs/dialog_label_properties.cpp
|
|
|
|
dialogs/dialog_label_properties_base.cpp
|
2015-03-27 10:26:07 +00:00
|
|
|
dialogs/dialog_lib_edit_pin_table.cpp
|
|
|
|
dialogs/dialog_lib_edit_pin_table_base.cpp
|
2021-06-14 18:00:08 +00:00
|
|
|
dialogs/dialog_lib_new_symbol.cpp
|
|
|
|
dialogs/dialog_lib_new_symbol_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/dialog_lib_symbol_properties.cpp
|
|
|
|
dialogs/dialog_lib_symbol_properties_base.cpp
|
2022-03-16 13:43:19 +00:00
|
|
|
dialogs/dialog_line_properties.cpp
|
|
|
|
dialogs/dialog_line_properties_base.cpp
|
2019-03-11 21:32:05 +00:00
|
|
|
dialogs/dialog_migrate_buses.cpp
|
|
|
|
dialogs/dialog_migrate_buses_base.cpp
|
2020-08-03 21:12:29 +00:00
|
|
|
dialogs/dialog_pin_properties.cpp
|
|
|
|
dialogs/dialog_pin_properties_base.cpp
|
2012-09-17 17:42:27 +00:00
|
|
|
dialogs/dialog_plot_schematic.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
dialogs/dialog_plot_schematic_base.cpp
|
2015-04-25 22:26:51 +00:00
|
|
|
dialogs/dialog_rescue_each.cpp
|
|
|
|
dialogs/dialog_rescue_each_base.cpp
|
2020-03-10 18:46:57 +00:00
|
|
|
dialogs/dialog_sch_import_settings.cpp
|
|
|
|
dialogs/dialog_sch_import_settings_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/dialog_schematic_find.cpp
|
|
|
|
dialogs/dialog_schematic_find_base.cpp
|
|
|
|
dialogs/dialog_schematic_setup.cpp
|
2021-07-17 19:56:18 +00:00
|
|
|
dialogs/dialog_shape_properties.cpp
|
|
|
|
dialogs/dialog_shape_properties_base.cpp
|
2020-10-29 22:46:33 +00:00
|
|
|
dialogs/dialog_sheet_pin_properties.cpp
|
|
|
|
dialogs/dialog_sheet_pin_properties_base.cpp
|
2020-10-06 13:17:45 +00:00
|
|
|
dialogs/dialog_sheet_properties.cpp
|
|
|
|
dialogs/dialog_sheet_properties_base.cpp
|
2023-09-28 13:09:45 +00:00
|
|
|
dialogs/dialog_symbol_chooser.cpp
|
2021-07-03 20:43:30 +00:00
|
|
|
dialogs/dialog_symbol_fields_table.cpp
|
|
|
|
dialogs/dialog_symbol_fields_table_base.cpp
|
2020-10-17 23:25:39 +00:00
|
|
|
dialogs/dialog_symbol_properties.cpp
|
|
|
|
dialogs/dialog_symbol_properties_base.cpp
|
2017-03-09 23:33:39 +00:00
|
|
|
dialogs/dialog_symbol_remap.cpp
|
|
|
|
dialogs/dialog_symbol_remap_base.cpp
|
2024-02-03 13:43:41 +00:00
|
|
|
dialogs/dialog_table_properties.cpp
|
|
|
|
dialogs/dialog_table_properties_base.cpp
|
2023-11-25 12:38:24 +00:00
|
|
|
dialogs/dialog_tablecell_properties.cpp
|
|
|
|
dialogs/dialog_tablecell_properties_base.cpp
|
2021-10-12 20:05:37 +00:00
|
|
|
dialogs/dialog_text_properties.cpp
|
|
|
|
dialogs/dialog_text_properties_base.cpp
|
2020-01-29 16:33:57 +00:00
|
|
|
dialogs/dialog_update_from_pcb.cpp
|
|
|
|
dialogs/dialog_update_from_pcb_base.cpp
|
2021-02-13 21:28:06 +00:00
|
|
|
dialogs/dialog_update_symbol_fields.cpp
|
|
|
|
dialogs/dialog_update_symbol_fields_base.cpp
|
2022-03-16 13:43:19 +00:00
|
|
|
dialogs/dialog_wire_bus_properties.cpp
|
|
|
|
dialogs/dialog_wire_bus_properties_base.cpp
|
2023-09-27 13:13:55 +00:00
|
|
|
dialogs/panel_bom_presets.cpp
|
|
|
|
dialogs/panel_bom_presets_base.cpp
|
2020-02-03 16:46:58 +00:00
|
|
|
dialogs/panel_eeschema_color_settings.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
dialogs/panel_eeschema_display_options.cpp
|
|
|
|
dialogs/panel_eeschema_display_options_base.cpp
|
2022-03-30 17:41:40 +00:00
|
|
|
dialogs/panel_eeschema_annotation_options.cpp
|
|
|
|
dialogs/panel_eeschema_annotation_options_base.cpp
|
2020-10-25 19:24:00 +00:00
|
|
|
dialogs/panel_eeschema_editing_options.cpp
|
|
|
|
dialogs/panel_eeschema_editing_options_base.cpp
|
2022-08-21 11:26:47 +00:00
|
|
|
dialogs/panel_setup_buses.cpp
|
|
|
|
dialogs/panel_setup_buses_base.cpp
|
2020-03-10 18:46:57 +00:00
|
|
|
dialogs/panel_setup_formatting.cpp
|
|
|
|
dialogs/panel_setup_formatting_base.cpp
|
2020-03-11 21:43:02 +00:00
|
|
|
dialogs/panel_setup_pinmap.cpp
|
|
|
|
dialogs/panel_setup_pinmap_base.cpp
|
2024-01-23 01:02:50 +00:00
|
|
|
dialogs/panel_simulator_preferences.cpp
|
|
|
|
dialogs/panel_simulator_preferences_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/panel_sym_color_settings.cpp
|
|
|
|
dialogs/panel_sym_color_settings_base.cpp
|
2021-11-01 11:20:13 +00:00
|
|
|
dialogs/panel_sym_display_options.cpp
|
2020-10-25 19:24:00 +00:00
|
|
|
dialogs/panel_sym_editing_options.cpp
|
|
|
|
dialogs/panel_sym_editing_options_base.cpp
|
2018-07-20 17:46:56 +00:00
|
|
|
dialogs/panel_sym_lib_table.cpp
|
|
|
|
dialogs/panel_sym_lib_table_base.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
dialogs/panel_template_fieldnames.cpp
|
|
|
|
dialogs/panel_template_fieldnames_base.cpp
|
2012-08-21 10:45:54 +00:00
|
|
|
)
|
|
|
|
|
2023-03-20 16:40:06 +00:00
|
|
|
# The simulator source files
|
|
|
|
set( EESCHEMA_SIM_SRCS
|
|
|
|
dialogs/dialog_sim_command.cpp
|
|
|
|
dialogs/dialog_sim_command_base.cpp
|
|
|
|
dialogs/dialog_sim_format_value.cpp
|
|
|
|
dialogs/dialog_sim_format_value_base.cpp
|
|
|
|
dialogs/dialog_sim_model.cpp
|
|
|
|
dialogs/dialog_sim_model_base.cpp
|
|
|
|
dialogs/dialog_user_defined_signals.cpp
|
|
|
|
dialogs/dialog_user_defined_signals_base.cpp
|
|
|
|
tools/simulator_control.cpp
|
|
|
|
|
|
|
|
sim/sim_library.cpp
|
|
|
|
sim/sim_library_spice.cpp
|
2024-06-10 19:16:30 +00:00
|
|
|
sim/sim_library_ibis.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/sim_lib_mgr.cpp
|
|
|
|
|
|
|
|
sim/sim_model_serializer.cpp
|
|
|
|
sim/sim_model.cpp
|
|
|
|
sim/sim_model_behavioral.cpp
|
|
|
|
sim/sim_model_ideal.cpp
|
|
|
|
sim/sim_model_l_mutual.cpp
|
2024-06-10 19:16:30 +00:00
|
|
|
sim/sim_model_ibis.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/sim_model_ngspice.cpp
|
2023-05-20 23:58:36 +00:00
|
|
|
sim/sim_model_ngspice_data_bjt.cpp
|
2023-05-26 12:44:05 +00:00
|
|
|
sim/sim_model_ngspice_data_bsim1.cpp
|
|
|
|
sim/sim_model_ngspice_data_bsim2.cpp
|
2023-05-20 23:58:36 +00:00
|
|
|
sim/sim_model_ngspice_data_bsim3.cpp
|
|
|
|
sim/sim_model_ngspice_data_bsim4.cpp
|
|
|
|
sim/sim_model_ngspice_data_b3soi.cpp
|
|
|
|
sim/sim_model_ngspice_data_b4soi.cpp
|
|
|
|
sim/sim_model_ngspice_data_diode.cpp
|
|
|
|
sim/sim_model_ngspice_data_hfet.cpp
|
|
|
|
sim/sim_model_ngspice_data_hicum2.cpp
|
|
|
|
sim/sim_model_ngspice_data_hsim.cpp
|
|
|
|
sim/sim_model_ngspice_data_jfet.cpp
|
|
|
|
sim/sim_model_ngspice_data_mes.cpp
|
|
|
|
sim/sim_model_ngspice_data_mos.cpp
|
2023-05-26 12:44:05 +00:00
|
|
|
sim/sim_model_ngspice_data_mos6.cpp
|
2023-05-20 23:58:36 +00:00
|
|
|
sim/sim_model_ngspice_data_mos9.cpp
|
|
|
|
sim/sim_model_ngspice_data_vbic.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/sim_model_r_pot.cpp
|
|
|
|
sim/sim_model_raw_spice.cpp
|
|
|
|
sim/sim_model_source.cpp
|
|
|
|
sim/sim_model_spice.cpp
|
|
|
|
sim/sim_model_spice_fallback.cpp
|
|
|
|
sim/sim_model_subckt.cpp
|
|
|
|
sim/sim_model_switch.cpp
|
|
|
|
sim/sim_model_tline.cpp
|
|
|
|
sim/sim_model_xspice.cpp
|
|
|
|
|
|
|
|
sim/sim_value.cpp
|
|
|
|
sim/spice_settings.cpp
|
|
|
|
sim/spice_generator.cpp
|
|
|
|
sim/spice_library_parser.cpp
|
|
|
|
sim/spice_model_parser.cpp
|
|
|
|
|
|
|
|
sim/kibis/ibis_parser.cpp
|
|
|
|
sim/kibis/kibis.cpp
|
|
|
|
|
2023-07-14 16:44:05 +00:00
|
|
|
sim/spice_circuit_model.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/ngspice.cpp
|
|
|
|
sim/simulator_frame.cpp
|
2023-07-14 16:44:05 +00:00
|
|
|
sim/simulator_frame_ui.cpp
|
|
|
|
sim/simulator_frame_ui_base.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/sim_plot_colors.cpp
|
2023-07-14 16:44:05 +00:00
|
|
|
sim/sim_plot_tab.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/sim_property.cpp
|
2023-07-14 16:44:05 +00:00
|
|
|
sim/sim_tab.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
sim/spice_simulator.cpp
|
|
|
|
sim/spice_value.cpp
|
|
|
|
sim/toolbars_simulator_frame.cpp
|
|
|
|
|
2023-07-14 16:44:05 +00:00
|
|
|
sim/legacy_workbook.cpp
|
|
|
|
|
2023-03-20 16:40:06 +00:00
|
|
|
widgets/tuner_slider.cpp
|
|
|
|
widgets/tuner_slider_base.cpp
|
|
|
|
)
|
|
|
|
|
2016-01-16 23:50:45 +00:00
|
|
|
set( EESCHEMA_WIDGETS
|
2022-12-12 11:46:20 +00:00
|
|
|
widgets/hierarchy_pane.cpp
|
2024-02-25 22:39:14 +00:00
|
|
|
widgets/panel_sch_selection_filter_base.cpp
|
|
|
|
widgets/panel_sch_selection_filter.cpp
|
2023-09-28 13:09:45 +00:00
|
|
|
widgets/panel_symbol_chooser.cpp
|
2016-02-28 17:33:29 +00:00
|
|
|
widgets/pin_shape_combobox.cpp
|
|
|
|
widgets/pin_type_combobox.cpp
|
2023-03-09 17:41:18 +00:00
|
|
|
widgets/symbol_diff_widget.cpp
|
2023-06-21 01:57:20 +00:00
|
|
|
widgets/sch_properties_panel.cpp
|
2023-05-15 01:35:39 +00:00
|
|
|
widgets/sch_search_pane.cpp
|
|
|
|
widgets/search_handlers.cpp
|
2018-08-28 13:26:39 +00:00
|
|
|
widgets/symbol_preview_widget.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
widgets/symbol_tree_pane.cpp
|
2016-01-16 23:50:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2018-08-03 12:18:26 +00:00
|
|
|
set ( EESCHEMA_LIBEDIT_SRCS
|
2021-06-01 05:17:57 +00:00
|
|
|
symbol_editor/lib_logger.cpp
|
2022-09-16 03:06:23 +00:00
|
|
|
symbol_editor/lib_symbol_library_manager.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
symbol_editor/menubar_symbol_editor.cpp
|
|
|
|
symbol_editor/symbol_edit_frame.cpp
|
2020-10-31 01:27:16 +00:00
|
|
|
symbol_editor/symbol_editor.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
symbol_editor/symbol_editor_import_export.cpp
|
2020-10-31 01:27:16 +00:00
|
|
|
symbol_editor/symbol_editor_plotter.cpp
|
|
|
|
symbol_editor/symbol_editor_settings.cpp
|
|
|
|
symbol_editor/symbol_editor_undo_redo.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
symbol_editor/toolbars_symbol_editor.cpp
|
2023-03-20 16:40:06 +00:00
|
|
|
)
|
2018-08-03 12:18:26 +00:00
|
|
|
|
2023-08-18 18:27:48 +00:00
|
|
|
set( EESCHEMA_IMPORT_GFX
|
2023-10-09 00:54:34 +00:00
|
|
|
import_gfx/dialog_import_gfx_sch_base.cpp
|
|
|
|
import_gfx/dialog_import_gfx_sch.cpp
|
2023-08-18 18:27:48 +00:00
|
|
|
import_gfx/graphics_importer_lib_symbol.cpp
|
2023-10-09 03:56:13 +00:00
|
|
|
import_gfx/graphics_importer_sch.cpp
|
2023-08-18 18:27:48 +00:00
|
|
|
)
|
|
|
|
|
2023-11-23 13:29:07 +00:00
|
|
|
set( EESCHEMA_PRINTING
|
|
|
|
printing/dialog_print_using_printer.cpp
|
|
|
|
printing/dialog_print_using_printer_base.cpp
|
|
|
|
printing/sch_printout.cpp
|
|
|
|
)
|
|
|
|
|
2024-02-25 14:23:59 +00:00
|
|
|
set( SYNC_SHEET_PIN_SRCS
|
|
|
|
sync_sheet_pin/dialog_sync_sheet_pins.cpp
|
|
|
|
sync_sheet_pin/dialog_sync_sheet_pins_base.cpp
|
|
|
|
sync_sheet_pin/panel_sync_sheet_pins.cpp
|
|
|
|
sync_sheet_pin/panel_sync_sheet_pins_base.cpp
|
|
|
|
sync_sheet_pin/sheet_synchronization_agent.cpp
|
|
|
|
sync_sheet_pin/sheet_synchronization_item.cpp
|
|
|
|
sync_sheet_pin/sheet_synchronization_notifier.cpp
|
|
|
|
sync_sheet_pin/sheet_synchronization_model.cpp
|
|
|
|
)
|
|
|
|
|
2024-05-03 18:11:16 +00:00
|
|
|
set( EESCHEMA_ERC_SRCS
|
|
|
|
erc/erc.cpp
|
|
|
|
erc/erc_item.cpp
|
|
|
|
erc/erc_report.cpp
|
|
|
|
erc/erc_sch_pin_context.cpp
|
|
|
|
erc/erc_settings.cpp
|
|
|
|
)
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
set( EESCHEMA_SRCS
|
2022-01-31 19:48:53 +00:00
|
|
|
${EESCHEMA_DLGS}
|
2024-05-03 18:11:16 +00:00
|
|
|
${EESCHEMA_ERC_SRCS}
|
2022-01-31 19:48:53 +00:00
|
|
|
${EESCHEMA_LIBEDIT_SRCS}
|
2023-12-19 17:39:26 +00:00
|
|
|
${EESCHEMA_SCH_IO}
|
2023-03-20 16:40:06 +00:00
|
|
|
${EESCHEMA_SIM_SRCS}
|
2017-12-27 16:06:27 +00:00
|
|
|
${EESCHEMA_WIDGETS}
|
2023-08-18 18:27:48 +00:00
|
|
|
${EESCHEMA_IMPORT_GFX}
|
2024-02-25 14:23:59 +00:00
|
|
|
${SYNC_SHEET_PIN_SRCS}
|
2012-08-21 10:45:54 +00:00
|
|
|
annotate.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
autoplace_fields.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
bom_plugins.cpp
|
2012-08-21 10:45:54 +00:00
|
|
|
bus-wire-junction.cpp
|
2019-03-11 21:32:05 +00:00
|
|
|
connection_graph.cpp
|
2012-08-21 10:45:54 +00:00
|
|
|
cross-probing.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
ee_collectors.cpp
|
2009-10-27 13:48:24 +00:00
|
|
|
eeschema_config.cpp
|
2022-10-26 21:59:33 +00:00
|
|
|
eeschema_helpers.cpp
|
|
|
|
eeschema_jobs_handler.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
eeschema_settings.cpp
|
2023-02-28 18:37:04 +00:00
|
|
|
fields_data_model.cpp
|
2018-02-28 16:54:35 +00:00
|
|
|
fields_grid_table.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
files-io.cpp
|
2017-02-19 14:00:02 +00:00
|
|
|
generate_alias_info.cpp
|
2023-09-06 11:58:39 +00:00
|
|
|
gfx_import_utils.cpp
|
2024-05-17 12:28:22 +00:00
|
|
|
junction_helpers.cpp
|
2021-02-24 13:48:02 +00:00
|
|
|
lib_symbol.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
libarch.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
menubar.cpp
|
2023-05-20 17:47:12 +00:00
|
|
|
net_navigator.cpp
|
2024-05-17 12:28:22 +00:00
|
|
|
picksymbol.cpp
|
2021-07-28 18:50:17 +00:00
|
|
|
pin_numbers.cpp
|
2016-02-28 17:33:29 +00:00
|
|
|
pin_type.cpp
|
2023-09-28 03:04:53 +00:00
|
|
|
project_sch.cpp
|
2015-06-22 15:38:54 +00:00
|
|
|
project_rescue.cpp
|
2012-01-09 17:24:01 +00:00
|
|
|
sch_base_frame.cpp
|
2011-08-31 14:59:20 +00:00
|
|
|
sch_bitmap.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_bus_entry.cpp
|
2023-06-09 21:41:33 +00:00
|
|
|
sch_commit.cpp
|
2019-03-11 21:32:05 +00:00
|
|
|
sch_connection.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
sch_draw_panel.cpp
|
|
|
|
sch_edit_frame.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_field.cpp
|
2019-05-10 19:57:24 +00:00
|
|
|
sch_item.cpp
|
2011-01-12 21:47:54 +00:00
|
|
|
sch_junction.cpp
|
2022-01-24 13:40:39 +00:00
|
|
|
sch_label.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_line.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_marker.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_no_connect.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
sch_painter.cpp
|
2019-04-03 09:14:36 +00:00
|
|
|
sch_pin.cpp
|
2022-10-26 21:59:33 +00:00
|
|
|
sch_plotter.cpp
|
2018-08-28 13:26:39 +00:00
|
|
|
sch_preview_panel.cpp
|
2023-01-04 20:54:36 +00:00
|
|
|
sch_reference_list.cpp
|
2024-04-02 17:28:17 +00:00
|
|
|
sch_render_settings.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_screen.cpp
|
2021-07-17 19:56:18 +00:00
|
|
|
sch_shape.cpp
|
2024-04-25 14:24:46 +00:00
|
|
|
sch_rule_area.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_sheet.cpp
|
|
|
|
sch_sheet_path.cpp
|
|
|
|
sch_sheet_pin.cpp
|
2021-02-24 13:48:02 +00:00
|
|
|
sch_symbol.cpp
|
2023-11-25 12:38:24 +00:00
|
|
|
sch_table.cpp
|
|
|
|
sch_tablecell.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_text.cpp
|
2022-01-25 22:33:37 +00:00
|
|
|
sch_textbox.cpp
|
2016-04-02 12:25:44 +00:00
|
|
|
sch_validators.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
sch_view.cpp
|
2020-05-13 02:00:37 +00:00
|
|
|
schematic.cpp
|
2020-06-08 02:19:46 +00:00
|
|
|
schematic_settings.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
schematic_undo_redo.cpp
|
|
|
|
sheet.cpp
|
2024-04-02 17:28:17 +00:00
|
|
|
symbol.cpp
|
2021-03-17 00:48:10 +00:00
|
|
|
symbol_async_loader.cpp
|
2022-04-16 16:55:04 +00:00
|
|
|
symbol_checker.cpp
|
2023-09-28 13:09:45 +00:00
|
|
|
symbol_chooser_frame.cpp
|
2016-11-20 18:33:07 +00:00
|
|
|
symbol_lib_table.cpp
|
2021-06-15 13:24:55 +00:00
|
|
|
symbol_library.cpp
|
2022-09-16 03:06:23 +00:00
|
|
|
symbol_library_manager.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
symbol_tree_model_adapter.cpp
|
|
|
|
symbol_tree_synchronizing_adapter.cpp
|
2021-07-17 19:56:18 +00:00
|
|
|
symbol_viewer_frame.cpp
|
2024-05-16 14:14:44 +00:00
|
|
|
symb_transforms_utils.cpp
|
2019-05-06 08:56:24 +00:00
|
|
|
toolbars_sch_editor.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
toolbars_symbol_viewer.cpp
|
2016-08-11 12:41:29 +00:00
|
|
|
|
2024-01-20 23:35:29 +00:00
|
|
|
api/api_sch_utils.cpp
|
|
|
|
|
2023-06-28 22:47:30 +00:00
|
|
|
netlist_exporters/netlist_exporter_allegro.cpp
|
2020-11-15 13:58:21 +00:00
|
|
|
netlist_exporters/netlist_exporter_base.cpp
|
2015-03-21 10:46:54 +00:00
|
|
|
netlist_exporters/netlist_exporter_cadstar.cpp
|
|
|
|
netlist_exporters/netlist_exporter_kicad.cpp
|
2024-03-09 14:57:24 +00:00
|
|
|
netlist_exporters/netlist_exporter_pads.cpp
|
2015-03-21 10:46:54 +00:00
|
|
|
netlist_exporters/netlist_exporter_orcadpcb2.cpp
|
2022-04-12 14:37:06 +00:00
|
|
|
netlist_exporters/netlist_exporter_spice.cpp
|
2022-09-09 13:34:56 +00:00
|
|
|
netlist_exporters/netlist_exporter_spice_model.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
netlist_exporters/netlist_exporter_xml.cpp
|
2020-10-26 17:40:58 +00:00
|
|
|
netlist_exporters/netlist_generator.cpp
|
2019-04-12 19:18:45 +00:00
|
|
|
|
2020-10-14 19:20:54 +00:00
|
|
|
tools/assign_footprints.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
tools/backannotate.cpp
|
2019-06-17 00:34:21 +00:00
|
|
|
tools/ee_actions.cpp
|
2020-09-09 02:54:17 +00:00
|
|
|
tools/ee_grid_helper.cpp
|
2019-05-12 11:49:58 +00:00
|
|
|
tools/ee_inspection_tool.cpp
|
|
|
|
tools/ee_point_editor.cpp
|
2019-06-08 21:48:22 +00:00
|
|
|
tools/ee_selection.cpp
|
2019-05-12 11:49:58 +00:00
|
|
|
tools/ee_selection_tool.cpp
|
2024-04-25 14:24:46 +00:00
|
|
|
tools/rule_area_create_helper.cpp
|
2019-05-07 18:49:53 +00:00
|
|
|
tools/sch_drawing_tools.cpp
|
2023-11-25 12:38:24 +00:00
|
|
|
tools/sch_edit_table_tool.cpp
|
2019-04-21 23:45:34 +00:00
|
|
|
tools/sch_edit_tool.cpp
|
|
|
|
tools/sch_editor_control.cpp
|
2022-03-22 16:49:38 +00:00
|
|
|
tools/sch_editor_conditions.cpp
|
2023-01-11 14:17:36 +00:00
|
|
|
tools/sch_find_replace_tool.cpp
|
2019-06-16 13:42:40 +00:00
|
|
|
tools/sch_line_wire_bus_tool.cpp
|
2019-05-04 13:02:05 +00:00
|
|
|
tools/sch_move_tool.cpp
|
2020-10-02 20:18:07 +00:00
|
|
|
tools/sch_navigate_tool.cpp
|
2022-01-31 19:48:53 +00:00
|
|
|
tools/symbol_editor_control.cpp
|
|
|
|
tools/symbol_editor_drawing_tools.cpp
|
|
|
|
tools/symbol_editor_edit_tool.cpp
|
|
|
|
tools/symbol_editor_move_tool.cpp
|
|
|
|
tools/symbol_editor_pin_tool.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
2024-01-20 23:35:29 +00:00
|
|
|
if( KICAD_IPC_API )
|
|
|
|
set( EESCHEMA_SRCS
|
|
|
|
${EESCHEMA_SRCS}
|
|
|
|
api/api_handler_sch.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-12-29 04:54:27 +00:00
|
|
|
if( WIN32 )
|
|
|
|
if( MINGW )
|
|
|
|
# EESCHEMA_RESOURCES variable is set by the macro.
|
|
|
|
mingw_resource_compiler( eeschema )
|
|
|
|
else()
|
|
|
|
set( EESCHEMA_RESOURCES ${CMAKE_SOURCE_DIR}/resources/msw/eeschema.rc )
|
|
|
|
endif()
|
2014-02-03 15:10:37 +00:00
|
|
|
endif()
|
|
|
|
|
2019-12-29 08:53:39 +00:00
|
|
|
# Create a C++ compilable string initializer containing markdown text into a *.h file:
|
2013-06-14 14:59:52 +00:00
|
|
|
add_custom_command(
|
2019-12-29 08:53:39 +00:00
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_md.h
|
2013-06-14 14:59:52 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
2019-12-29 08:53:39 +00:00
|
|
|
-DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help.md
|
|
|
|
-DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_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/dialog_bom_help.md
|
|
|
|
COMMENT "creating ${KICAD_CMAKE_MODULE_PATH}/dialogs/dialog_bom_help_md.h
|
2019-12-29 08:53:39 +00:00
|
|
|
from ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help.md"
|
2013-06-14 14:59:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties( dialogs/dialog_bom.cpp
|
|
|
|
PROPERTIES
|
2019-12-29 08:53:39 +00:00
|
|
|
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_md.h
|
2013-06-14 14:59:52 +00:00
|
|
|
)
|
|
|
|
|
2020-10-04 17:49:21 +00:00
|
|
|
# Create a C++ compilable string initializer containing markdown text into a *.h file:
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/sch_text_help_md.h
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/sch_text_help.md
|
|
|
|
-DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/sch_text_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}/sch_text_help.md
|
2020-10-04 17:49:21 +00:00
|
|
|
COMMENT "creating ${CMAKE_CURRENT_SOURCE_DIR}/sch_text_help_md.h
|
|
|
|
from ${CMAKE_CURRENT_SOURCE_DIR}/sch_text_help.md"
|
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties( sch_text.cpp
|
|
|
|
PROPERTIES
|
|
|
|
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sch_text_help_md.h
|
|
|
|
)
|
|
|
|
|
2023-07-05 10:49:31 +00:00
|
|
|
# Create a C++ compilable string initializer containing markdown text into a *.h file:
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/sim/user_defined_signals_help_md.h
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/sim/user_defined_signals_help.md
|
|
|
|
-DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/sim/user_defined_signals_help_md.h
|
|
|
|
-P ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/markdown2C.cmake
|
|
|
|
DEPENDS ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/markdown2C.cmake sim/user_defined_signals_help.md
|
|
|
|
COMMENT "creating ${CMAKE_CURRENT_SOURCE_DIR}/sim/user_defined_signals_help_md.h
|
|
|
|
from ${CMAKE_CURRENT_SOURCE_DIR}/sch_spice_fcn_help.md"
|
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties( dialogs/dialog_user_defined_signals.cpp
|
|
|
|
PROPERTIES
|
|
|
|
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sim/user_defined_signals_help_md.h
|
|
|
|
)
|
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2014-10-17 17:45:33 +00:00
|
|
|
# setup bundle
|
2023-11-16 17:10:50 +00:00
|
|
|
set( EESCHEMA_RESOURCES eeschema.icns eeschema_doc.icns libedit.icns libedit_doc.icns )
|
|
|
|
set_source_files_properties(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/eeschema.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/eeschema_doc.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/libedit.icns"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/libedit_doc.icns"
|
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources
|
2014-10-17 17:45:33 +00:00
|
|
|
)
|
|
|
|
set( MACOSX_BUNDLE_ICON_FILE eeschema.icns )
|
2021-07-31 03:27:05 +00:00
|
|
|
set( MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad.kicad )
|
2014-10-17 17:45:33 +00:00
|
|
|
set( MACOSX_BUNDLE_NAME eeschema )
|
|
|
|
endif()
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
add_executable( eeschema 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
|
|
|
${EESCHEMA_RESOURCES}
|
|
|
|
)
|
2023-08-31 02:05:01 +00:00
|
|
|
|
2020-01-22 23:27:20 +00:00
|
|
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
2021-03-03 00:22:32 +00:00
|
|
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_SCH;PGM_DATA_FILE_EXT=\"kicad_sch\";BUILD_KIWAY_DLL"
|
2014-10-26 19:54:48 +00:00
|
|
|
)
|
2024-04-14 11:48:09 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
target_link_libraries( eeschema
|
2024-03-20 01:53:21 +00:00
|
|
|
kicommon
|
2016-08-11 12:41:21 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
2014-10-26 19:54:48 +00:00
|
|
|
)
|
2022-07-07 14:17:21 +00:00
|
|
|
|
Eeschema: build with object libraries
This is done to allow access to the eeschema library
internals for purposes of test and script access, as the
DLL library has highly restrictive -fvisibility settings
that otherwise prevent the tests being able to access 99.9%
of the eeschema library functions (only a single function
is APIEXPORT'ed, therefore that's the only test we can do).
Using object libraries is a bit of a hack, and makes for
a slower link when done for multiple targets, but with the currently
supported CMake versions, it's about as good as we can get.
A better solution in the longer term may be to break eeschema_kiface(_objects)
into many smaller libraries, each of which has a much more defined scope,
rather than one big interlinked amorphous lump. This has the advantage that
each module is testable in isolation, and we get better organisation of
inter-dependencies in the codebase.
Then, the kiface DLL will gather these sub-libs and present what
is needed on the visible DLL API. Thus, we get both a testable
suite of library functions, and a restricted kiface DLL interface.
2019-04-23 07:58:17 +00:00
|
|
|
# the main Eeschema program, in DSO form.
|
|
|
|
add_library( eeschema_kiface_objects OBJECT
|
2014-10-26 19:54:48 +00:00
|
|
|
${EESCHEMA_SRCS}
|
2023-11-23 13:29:07 +00:00
|
|
|
${EESCHEMA_PRINTING}
|
2014-10-26 19:54:48 +00:00
|
|
|
${EESCHEMA_COMMON_SRCS}
|
|
|
|
)
|
Eeschema: build with object libraries
This is done to allow access to the eeschema library
internals for purposes of test and script access, as the
DLL library has highly restrictive -fvisibility settings
that otherwise prevent the tests being able to access 99.9%
of the eeschema library functions (only a single function
is APIEXPORT'ed, therefore that's the only test we can do).
Using object libraries is a bit of a hack, and makes for
a slower link when done for multiple targets, but with the currently
supported CMake versions, it's about as good as we can get.
A better solution in the longer term may be to break eeschema_kiface(_objects)
into many smaller libraries, each of which has a much more defined scope,
rather than one big interlinked amorphous lump. This has the advantage that
each module is testable in isolation, and we get better organisation of
inter-dependencies in the codebase.
Then, the kiface DLL will gather these sub-libs and present what
is needed on the visible DLL API. Thus, we get both a testable
suite of library functions, and a restricted kiface DLL interface.
2019-04-23 07:58:17 +00:00
|
|
|
|
2022-01-02 02:21:49 +00:00
|
|
|
target_include_directories( eeschema_kiface_objects
|
|
|
|
PUBLIC
|
|
|
|
.
|
2022-06-15 00:41:10 +00:00
|
|
|
netlist_exporters
|
|
|
|
)
|
2022-01-02 02:21:49 +00:00
|
|
|
|
|
|
|
target_link_libraries( eeschema_kiface_objects
|
|
|
|
PUBLIC
|
|
|
|
common )
|
2022-07-07 14:17:21 +00:00
|
|
|
|
2019-07-03 09:08:55 +00:00
|
|
|
# Since we're not using target_link_libraries, we need to explicitly
|
|
|
|
# declare the dependency
|
|
|
|
add_dependencies( eeschema_kiface_objects common )
|
|
|
|
|
2023-04-07 17:08:43 +00:00
|
|
|
message( STATUS "Including 3Dconnexion SpaceMouse navigation support in eeschema" )
|
|
|
|
add_subdirectory( navlib )
|
2022-04-05 06:38:09 +00:00
|
|
|
|
2023-04-07 17:08:43 +00:00
|
|
|
target_link_libraries( eeschema_kiface_objects PUBLIC eeschema_navlib)
|
2022-04-05 06:38:09 +00:00
|
|
|
|
2023-04-07 17:08:43 +00:00
|
|
|
add_dependencies( eeschema_kiface_objects eeschema_navlib )
|
2022-04-05 06:38:09 +00:00
|
|
|
|
Eeschema: build with object libraries
This is done to allow access to the eeschema library
internals for purposes of test and script access, as the
DLL library has highly restrictive -fvisibility settings
that otherwise prevent the tests being able to access 99.9%
of the eeschema library functions (only a single function
is APIEXPORT'ed, therefore that's the only test we can do).
Using object libraries is a bit of a hack, and makes for
a slower link when done for multiple targets, but with the currently
supported CMake versions, it's about as good as we can get.
A better solution in the longer term may be to break eeschema_kiface(_objects)
into many smaller libraries, each of which has a much more defined scope,
rather than one big interlinked amorphous lump. This has the advantage that
each module is testable in isolation, and we get better organisation of
inter-dependencies in the codebase.
Then, the kiface DLL will gather these sub-libs and present what
is needed on the visible DLL API. Thus, we get both a testable
suite of library functions, and a restricted kiface DLL interface.
2019-04-23 07:58:17 +00:00
|
|
|
add_library( eeschema_kiface MODULE
|
|
|
|
eeschema.cpp
|
|
|
|
)
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
target_link_libraries( eeschema_kiface
|
2022-01-02 02:21:49 +00:00
|
|
|
PRIVATE
|
|
|
|
common
|
2022-01-31 19:48:53 +00:00
|
|
|
eeschema_kiface_objects
|
2022-01-02 02:21:49 +00:00
|
|
|
markdown_lib
|
|
|
|
scripting
|
2022-01-31 19:48:53 +00:00
|
|
|
sexpr
|
2023-04-04 23:34:46 +00:00
|
|
|
core
|
2023-03-10 13:22:42 +00:00
|
|
|
Boost::headers
|
2022-01-02 02:21:49 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
2023-03-20 15:02:45 +00:00
|
|
|
${NGSPICE_LIBRARY}
|
2016-08-11 12:42:13 +00:00
|
|
|
)
|
2018-10-29 13:23:03 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
if( MSVC )
|
|
|
|
# Allow for MSVC to debug ngspice from the build directory
|
|
|
|
add_custom_command( TARGET eeschema_kiface POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${NGSPICE_DLL}" "$<TARGET_FILE_DIR:eeschema_kiface>"
|
2018-10-29 13:23:03 +00:00
|
|
|
)
|
2022-08-08 22:41:57 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
add_custom_command( TARGET eeschema_kiface POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory "${NGSPICE_CM_DIR}" "$<TARGET_FILE_DIR:eeschema_kiface>/ngspice"
|
|
|
|
)
|
2018-10-29 13:23:03 +00:00
|
|
|
endif()
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
set_target_properties( eeschema_kiface PROPERTIES
|
|
|
|
# Decorate OUTPUT_NAME with PREFIX and SUFFIX, creating something like
|
|
|
|
# _eeschema.so, _eeschema.dll, or _eeschema.kiface
|
|
|
|
OUTPUT_NAME eeschema
|
|
|
|
PREFIX ${KIFACE_PREFIX}
|
|
|
|
SUFFIX ${KIFACE_SUFFIX}
|
|
|
|
)
|
|
|
|
|
|
|
|
# The KIFACE is in eeschema.cpp, export it:
|
|
|
|
set_source_files_properties( eeschema.cpp PROPERTIES
|
|
|
|
COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"
|
|
|
|
)
|
|
|
|
|
|
|
|
# if building eeschema, then also build eeschema_kiface if out of date.
|
|
|
|
add_dependencies( eeschema eeschema_kiface )
|
|
|
|
|
2023-02-22 01:01:45 +00:00
|
|
|
# Generate link map with cross reference
|
|
|
|
target_link_options( eeschema_kiface PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=${KIFACE_PREFIX}eeschema${KIFACE_SUFFIX}.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
|
|
|
target_link_options( eeschema PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=eeschema.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
2014-02-03 15:10:37 +00:00
|
|
|
|
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( eeschema PROPERTIES
|
2019-12-26 12:42:25 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_BINARY_DIR}/eeschema/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
|
2014-02-03 19:26:18 +00:00
|
|
|
set_target_properties( eeschema_kiface PROPERTIES
|
2014-10-26 19:54:48 +00:00
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_KIFACE_DIR}
|
2014-02-03 15:10:37 +00:00
|
|
|
)
|
2023-08-08 16:49:39 +00:00
|
|
|
|
|
|
|
set_target_properties( eeschema PROPERTIES INSTALL_RPATH
|
|
|
|
"@executable_path/../Frameworks;@executable_path/../Frameworks/Python.framework" )
|
|
|
|
|
|
|
|
set_target_properties( eeschema_kiface PROPERTIES INSTALL_RPATH
|
|
|
|
"@executable_path/../Frameworks;@executable_path/../Frameworks/Python.framework" )
|
|
|
|
set_target_properties( eeschema_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 eeschema
|
|
|
|
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
|
|
|
)
|
2022-09-02 07:23:34 +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}\" )
|
|
|
|
" )
|
2018-04-19 09:36:22 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
# bundle libngspice and codemodels
|
|
|
|
get_filename_component( ABS_LIBNGSPICE ${NGSPICE_LIBRARY} ABSOLUTE )
|
|
|
|
get_filename_component( LIBNGSPICE_PATH ${ABS_LIBNGSPICE} DIRECTORY )
|
2021-10-12 16:23:00 +00:00
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
install( DIRECTORY "${LIBNGSPICE_PATH}/"
|
|
|
|
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim"
|
|
|
|
FILES_MATCHING PATTERN "*.dylib")
|
|
|
|
install( DIRECTORY "${LIBNGSPICE_PATH}/ngspice"
|
|
|
|
DESTINATION "${OSX_BUNDLE_INSTALL_PLUGIN_DIR}/sim" )
|
2023-08-08 16:49:39 +00:00
|
|
|
|
|
|
|
install( CODE [[
|
|
|
|
include( ${KICAD_CMAKE_MODULE_PATH}/InstallSteps/InstallMacOS.cmake )
|
|
|
|
|
|
|
|
# Install any dependencies (this will generally duplicate kicad.app but we can't be sure)
|
|
|
|
install_runtime_deps( "${KICAD_BIN}/eeschema.app/Contents/MacOS/eeschema"
|
|
|
|
"${OSX_BUNDLE_BUILD_KIFACE_DIR}/_eeschema.kiface"
|
|
|
|
""
|
|
|
|
)
|
|
|
|
]] )
|
2014-10-26 19:54:48 +00:00
|
|
|
else()
|
2021-12-29 04:54:27 +00:00
|
|
|
if( MSVC )
|
|
|
|
target_sources( eeschema_kiface PRIVATE ${CMAKE_SOURCE_DIR}/resources/msw/eeschema-dll.rc )
|
|
|
|
endif()
|
|
|
|
|
2014-10-17 17:45:33 +00:00
|
|
|
install( TARGETS eeschema
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
|
|
|
)
|
2014-10-26 19:54:48 +00:00
|
|
|
install( TARGETS eeschema_kiface
|
|
|
|
# actual filename subject to change at milestone C)
|
|
|
|
# modular-kicad blueprint.
|
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()
|
2014-02-03 15:10:37 +00:00
|
|
|
|
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:eeschema> DESTINATION ${KICAD_BIN})
|
2022-06-22 21:33:46 +00:00
|
|
|
install(FILES $<TARGET_PDB_FILE:eeschema_kiface> DESTINATION ${KICAD_KIFACE})
|
2021-07-15 03:31:56 +00:00
|
|
|
endif()
|
|
|
|
|
2014-10-22 23:25:59 +00:00
|
|
|
make_lexer(
|
2019-07-03 09:08:55 +00:00
|
|
|
eeschema_kiface_objects
|
|
|
|
dialogs/dialog_bom_cfg.keywords
|
|
|
|
dialogs/dialog_bom_cfg_lexer.h
|
|
|
|
dialogs/dialog_bom_cfg_keywords.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
T_BOMCFG_T
|
|
|
|
)
|
|
|
|
|
2020-02-13 13:39:52 +00:00
|
|
|
make_lexer(
|
|
|
|
eeschema_kiface_objects
|
2020-03-16 13:04:50 +00:00
|
|
|
schematic.keywords
|
|
|
|
schematic_lexer.h
|
|
|
|
schematic_keywords.cpp
|
2020-03-25 15:27:15 +00:00
|
|
|
TSCHEMATIC_T
|
2020-02-13 13:39:52 +00:00
|
|
|
)
|
|
|
|
|
2023-09-17 00:24:41 +00:00
|
|
|
add_subdirectory( python_scripts )
|