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()
|
|
|
|
|
2023-03-20 15:02:45 +00:00
|
|
|
set( INC_AFTER ${INC_AFTER} ${NGSPICE_INCLUDE_DIR} )
|
2018-11-28 13:46:42 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(
|
|
|
|
./dialogs
|
2016-01-16 01:56:57 +00:00
|
|
|
./widgets
|
2012-01-23 04:33:36 +00:00
|
|
|
./dialog_about
|
2022-07-21 23:32:44 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/resources/bitmaps_png
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/3d-viewer
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew
|
2012-01-23 04:33:36 +00:00
|
|
|
${INC_AFTER}
|
|
|
|
)
|
|
|
|
|
2022-05-11 23:48:56 +00:00
|
|
|
# Get the GAL Target
|
|
|
|
add_subdirectory( gal )
|
2014-02-19 21:39:21 +00:00
|
|
|
|
2013-08-10 09:14:16 +00:00
|
|
|
# Only for win32 cross compilation using MXE
|
2023-02-21 23:58:26 +00:00
|
|
|
add_compile_definitions( $<$<AND:$<BOOL:${WIN32}>,$<BOOL:${MSYS}>>:GLEW_STATIC> )
|
Introduction of Graphics Abstraction Layer based rendering for pcbnew.
New classes:
- VIEW - represents view that is seen by user, takes care of layer ordering & visibility and how it is displayed (which location, how much zoomed, etc.)
- VIEW_ITEM - Base class for every item that can be displayed on VIEW (the biggest change is that now it may be necessary to override ViewBBox & ViewGetLayers method for derived classes).
- EDA_DRAW_PANEL_GAL - Inherits after EDA_DRAW_PANEL, displays VIEW output, right now it is not editable (in opposite to usual EDA_DRAW_PANEL).
- GAL/OPENGL_GAL/CAIRO_GAL - Base Graphics Abstraction Layer class + two different flavours (Cairo is not fully supported yet), that offers methods to draw primitives using different libraries.
- WX_VIEW_CONTROLS - Controller for VIEW, handles user events, allows zooming, panning, etc.
- PAINTER/PCB_PAINTER - Classes that uses GAL interface to draw items (as you may have already guessed - PCB_PAINTER is a class for drawing PCB specific object, PAINTER is an abstract class). Its methods are invoked by VIEW, when an item has to be drawn. To display a new type of item - you need to implement draw(ITEM_TYPE*) method that draws it using GAL methods.
- STROKE_FONT - Implements stroke font drawing using GAL methods.
Most important changes to Kicad original code:
* EDA_ITEM now inherits from VIEW_ITEM, which is a base class for all drawable objects.
* EDA_DRAW_FRAME contains both usual EDA_DRAW_PANEL and new EDA_DRAW_PANEL_GAL, that can be switched anytime.
* There are some new layers for displaying multilayer pads, vias & pads holes (these are not shown yet on the right sidebar in pcbnew)
* Display order of layers is different than in previous versions (if you are curious - you may check m_galLayerOrder@pcbnew/basepcbframe.cpp). Preserving usual order would result in not very natural display, such as showing silkscreen texts on the bottom.
* Introduced new hotkey (Alt+F12) and new menu option (View->Switch canvas) for switching canvas during runtime.
* Some of classes (mostly derived from BOARD_ITEM) now includes ViewBBox & ViewGetLayers methods.
* Removed tools/class_painter.h, as now it is extended and included in source code.
Build changes:
* GAL-based rendering option is turned on by a new compilation CMake option KICAD_GAL.
* When compiling with CMake option KICAD_GAL=ON, GLEW and Cairo libraries are required.
* GAL-related code is compiled into a static library (common/libgal).
* Build with KICAD_GAL=OFF should not need any new libraries and should come out as a standard version of Kicad
Currently most of items in pcbnew can be displayed using OpenGL (to be done are DIMENSIONS and MARKERS).
More details about GAL can be found in: http://www.ohwr.org/attachments/1884/view-spec.pdf
2013-04-02 06:54:03 +00:00
|
|
|
|
2023-09-15 17:01:38 +00:00
|
|
|
|
|
|
|
# The build version string defaults to the value in the KiCadVersion.cmake file.
|
|
|
|
# If being built inside a git repository, the git tag and commit hash are used to create
|
|
|
|
# a new version string instead. The user can supply an additional string to be appended
|
|
|
|
# to the end inside the KICAD_VERSION_EXTRA variable
|
|
|
|
set( KICAD_VERSION_EXTRA "" CACHE STRING
|
|
|
|
"User defined configuration string to append to KiCad version." )
|
|
|
|
|
|
|
|
# Generate version header file.
|
|
|
|
add_custom_target(
|
|
|
|
version_header ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DKICAD_VERSION_EXTRA=${KICAD_VERSION_EXTRA}
|
|
|
|
-DOUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.h
|
|
|
|
-DTEXT_OUTPUT_FILE=${CMAKE_BINARY_DIR}/kicad_build_version.txt
|
|
|
|
-DSRC_PATH=${PROJECT_SOURCE_DIR}
|
|
|
|
-DKICAD_CMAKE_MODULE_PATH=${KICAD_CMAKE_MODULE_PATH}
|
|
|
|
-P ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/WriteVersionHeader.cmake
|
2024-01-20 23:35:29 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} BYPRODUCTS ${CMAKE_BINARY_DIR}/kicad_build_version.h
|
2023-09-15 17:01:38 +00:00
|
|
|
DEPENDS ${KICAD_CMAKE_MODULE_PATH}/BuildSteps/WriteVersionHeader.cmake
|
|
|
|
COMMENT "Generating version string header"
|
|
|
|
)
|
|
|
|
|
* 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
|
|
|
# A shared library used by multiple *.kiface files and one or two program
|
|
|
|
# launchers. Object files can migrate into here over time, but only if they are
|
|
|
|
# surely needed and certainly used from more than one place without recompilation.
|
|
|
|
# Functions and data all need to use the #include <import_export.h> and be declared
|
|
|
|
# as APIEXPORT
|
2023-09-09 03:43:18 +00:00
|
|
|
set( KICOMMON_SRCS
|
2023-09-18 11:29:55 +00:00
|
|
|
# Fonts
|
|
|
|
newstroke_font.cpp
|
2023-09-25 02:58:18 +00:00
|
|
|
font/fontconfig.cpp
|
|
|
|
font/version_info.cpp
|
2023-09-18 11:29:55 +00:00
|
|
|
# Gal
|
2023-09-15 01:08:05 +00:00
|
|
|
gal/color4d.cpp
|
2023-09-18 11:29:55 +00:00
|
|
|
# Jobs
|
2023-09-17 01:02:33 +00:00
|
|
|
jobs/job.cpp
|
|
|
|
jobs/job_export_pcb_drill.cpp
|
|
|
|
jobs/job_export_pcb_dxf.cpp
|
|
|
|
jobs/job_export_pcb_gerber.cpp
|
|
|
|
jobs/job_export_pcb_gerbers.cpp
|
2024-01-31 01:42:18 +00:00
|
|
|
jobs/job_export_pcb_ipc2581.cpp
|
2023-09-17 01:02:33 +00:00
|
|
|
jobs/job_export_pcb_pdf.cpp
|
|
|
|
jobs/job_export_pcb_pos.cpp
|
|
|
|
jobs/job_export_pcb_svg.cpp
|
|
|
|
jobs/job_export_pcb_3d.cpp
|
|
|
|
jobs/job_export_sch_bom.cpp
|
|
|
|
jobs/job_export_sch_netlist.cpp
|
2023-10-03 00:48:07 +00:00
|
|
|
jobs/job_export_sch_plot.cpp
|
2023-09-17 01:02:33 +00:00
|
|
|
jobs/job_export_sch_pythonbom.cpp
|
|
|
|
jobs/job_fp_export_svg.cpp
|
|
|
|
jobs/job_fp_upgrade.cpp
|
2024-03-03 18:11:42 +00:00
|
|
|
jobs/job_pcb_render.cpp
|
2023-09-17 01:02:33 +00:00
|
|
|
jobs/job_pcb_drc.cpp
|
|
|
|
jobs/job_sch_erc.cpp
|
|
|
|
jobs/job_sym_export_svg.cpp
|
|
|
|
jobs/job_sym_upgrade.cpp
|
|
|
|
|
2023-09-26 01:32:26 +00:00
|
|
|
kicad_curl/kicad_curl.cpp
|
|
|
|
kicad_curl/kicad_curl_easy.cpp
|
|
|
|
|
2024-03-20 01:53:21 +00:00
|
|
|
settings/app_settings.cpp
|
2024-03-14 02:49:01 +00:00
|
|
|
settings/aui_settings.cpp
|
|
|
|
settings/bom_settings.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
settings/color_settings.cpp
|
|
|
|
settings/common_settings.cpp
|
2024-03-14 02:49:01 +00:00
|
|
|
settings/grid_settings.cpp
|
|
|
|
settings/json_settings.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
settings/kicad_settings.cpp
|
2024-03-14 02:49:01 +00:00
|
|
|
settings/nested_settings.cpp
|
|
|
|
settings/parameters.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
settings/settings_manager.cpp
|
|
|
|
|
|
|
|
project/board_project_settings.cpp
|
|
|
|
project/net_settings.cpp
|
|
|
|
project/project_archiver.cpp
|
|
|
|
project/project_file.cpp
|
|
|
|
project/project_local_settings.cpp
|
2024-03-14 02:49:01 +00:00
|
|
|
|
2024-03-20 01:53:21 +00:00
|
|
|
dialogs/dialog_migrate_settings.cpp
|
|
|
|
dialogs/dialog_migrate_settings_base.cpp
|
|
|
|
|
|
|
|
widgets/bitmap_button.cpp
|
|
|
|
widgets/kistatusbar.cpp
|
2023-12-26 04:22:39 +00:00
|
|
|
widgets/progress_reporter_base.cpp
|
2023-12-27 22:08:05 +00:00
|
|
|
widgets/std_bitmap_button.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
widgets/ui_common.cpp
|
|
|
|
|
|
|
|
database/database_lib_settings.cpp
|
2023-12-26 04:22:39 +00:00
|
|
|
|
2023-09-26 01:32:26 +00:00
|
|
|
advanced_config.cpp
|
2023-09-10 18:41:18 +00:00
|
|
|
asset_archive.cpp
|
|
|
|
array_axis.cpp
|
|
|
|
array_options.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
background_jobs_monitor.cpp
|
|
|
|
bitmap.cpp
|
2023-09-14 03:11:03 +00:00
|
|
|
bitmap_info.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
bitmap_store.cpp
|
2023-09-26 01:32:26 +00:00
|
|
|
build_version.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
common.cpp
|
2023-09-24 00:06:36 +00:00
|
|
|
config_params.cpp
|
2023-09-23 14:24:47 +00:00
|
|
|
confirm.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
dialog_shim.cpp
|
2024-01-04 04:18:31 +00:00
|
|
|
dsnlexer.cpp
|
2023-12-28 03:07:21 +00:00
|
|
|
eda_pattern_match.cpp
|
2023-09-16 23:43:49 +00:00
|
|
|
eda_units.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
env_vars.cpp
|
2023-09-09 03:43:18 +00:00
|
|
|
exceptions.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
gestfich.cpp
|
2024-01-14 04:14:02 +00:00
|
|
|
json_conversions.cpp
|
2024-04-27 19:57:24 +00:00
|
|
|
kidialog.cpp
|
2023-09-14 23:21:43 +00:00
|
|
|
kiid.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
kiway.cpp
|
|
|
|
kiway_express.cpp
|
|
|
|
kiway_holder.cpp
|
|
|
|
launch_ext.cpp
|
|
|
|
lib_table_base.cpp
|
2023-09-15 01:33:03 +00:00
|
|
|
layer_id.cpp
|
2023-09-10 18:29:40 +00:00
|
|
|
lib_id.cpp
|
2023-09-10 15:29:06 +00:00
|
|
|
locale_io.cpp
|
2023-09-15 01:33:03 +00:00
|
|
|
lset.cpp
|
2023-09-14 01:37:35 +00:00
|
|
|
markup_parser.cpp
|
2023-12-27 22:57:02 +00:00
|
|
|
netclass.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
notifications_manager.cpp
|
2024-01-09 12:26:04 +00:00
|
|
|
page_info.cpp
|
2023-09-26 01:32:26 +00:00
|
|
|
paths.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
project.cpp
|
2023-09-09 03:43:18 +00:00
|
|
|
richio.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
search_stack.cpp
|
|
|
|
searchhelpfilefullpath.cpp
|
2021-07-29 09:56:22 +00:00
|
|
|
string_utils.cpp
|
2024-03-20 01:53:21 +00:00
|
|
|
systemdirsappend.cpp
|
2024-03-02 21:28:48 +00:00
|
|
|
ui_events.cpp
|
2023-09-23 12:15:05 +00:00
|
|
|
trace_helpers.cpp
|
2023-12-28 02:10:01 +00:00
|
|
|
wildcards_and_files_ext.cpp
|
2023-09-13 01:48:15 +00:00
|
|
|
wx_filename.cpp
|
2023-09-24 18:58:19 +00:00
|
|
|
|
2024-03-20 01:53:21 +00:00
|
|
|
pgm_base.cpp
|
|
|
|
|
|
|
|
../scripting/python_scripting.cpp
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
io/kicad/kicad_io_utils.cpp # needed by richio
|
* 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
|
|
|
)
|
|
|
|
|
2024-01-14 04:14:02 +00:00
|
|
|
if( KICAD_IPC_API )
|
|
|
|
set( KICOMMON_SRCS
|
|
|
|
${KICOMMON_SRCS}
|
2024-01-18 03:21:28 +00:00
|
|
|
api/api_handler.cpp
|
|
|
|
api/api_handler_common.cpp
|
2024-01-14 04:14:02 +00:00
|
|
|
api/api_plugin.cpp
|
|
|
|
api/api_plugin_manager.cpp
|
2024-01-18 03:21:28 +00:00
|
|
|
api/api_server.cpp
|
2024-01-14 04:14:02 +00:00
|
|
|
|
|
|
|
../scripting/python_manager.cpp
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-09-09 03:43:18 +00:00
|
|
|
add_library( kicommon SHARED
|
|
|
|
${KICOMMON_SRCS}
|
* 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-09-09 03:43:18 +00:00
|
|
|
|
2024-03-14 02:49:01 +00:00
|
|
|
set_target_properties(kicommon PROPERTIES CXX_VISIBILITY_PRESET hidden)
|
|
|
|
|
2023-09-09 03:43:18 +00:00
|
|
|
target_link_libraries( kicommon
|
|
|
|
core
|
2023-01-29 18:06:05 +00:00
|
|
|
kiapi
|
2023-09-10 15:29:06 +00:00
|
|
|
kimath
|
2023-09-09 03:43:18 +00:00
|
|
|
kiplatform
|
2023-09-14 23:21:43 +00:00
|
|
|
nlohmann_json
|
2023-09-09 03:43:18 +00:00
|
|
|
fmt::fmt
|
2023-09-26 01:32:26 +00:00
|
|
|
CURL::libcurl
|
* 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
|
|
|
${wxWidgets_LIBRARIES}
|
2023-09-14 21:39:42 +00:00
|
|
|
${LIBGIT2_LIBRARIES}
|
2023-09-15 06:47:42 +00:00
|
|
|
|
|
|
|
# needed by kiid to allow linking for Boost for the UUID against bcrypt (msys2 only)
|
|
|
|
${EXTRA_LIBS}
|
2023-09-25 02:58:18 +00:00
|
|
|
|
|
|
|
# outline font support
|
|
|
|
${FREETYPE_LIBRARIES}
|
|
|
|
${HarfBuzz_LIBRARIES}
|
|
|
|
${Fontconfig_LIBRARIES}
|
2024-03-20 01:53:21 +00:00
|
|
|
|
|
|
|
# needed because of python_scripting.cpp
|
|
|
|
${PYTHON_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-09-09 03:43:18 +00:00
|
|
|
|
2024-03-20 01:53:21 +00:00
|
|
|
|
|
|
|
if( KICAD_USE_SENTRY )
|
|
|
|
target_link_libraries( kicommon
|
|
|
|
sentry )
|
|
|
|
|
|
|
|
set_property(SOURCE pgm_base.cpp APPEND PROPERTY COMPILE_DEFINITIONS KICAD_SENTRY_DSN="${KICAD_SENTRY_DSN}")
|
|
|
|
endif()
|
|
|
|
|
2024-01-18 03:21:28 +00:00
|
|
|
if( KICAD_IPC_API )
|
|
|
|
target_link_libraries( kicommon
|
|
|
|
kinng
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2023-09-09 03:43:18 +00:00
|
|
|
include( ${KICAD_CMAKE_MODULE_PATH}/KiCadVersion.cmake )
|
|
|
|
include( ${KICAD_CMAKE_MODULE_PATH}/CreateGitVersionHeader.cmake )
|
|
|
|
create_git_version_header(${CMAKE_SOURCE_DIR})
|
|
|
|
|
|
|
|
# Extract the major and minor build version as a string
|
|
|
|
string( REGEX MATCH
|
|
|
|
"([0-9]+)\\.([0-9]+)\\.([0-9]+)"
|
|
|
|
KICAD_MAJOR_MINOR_PATCH_VERSION
|
|
|
|
"${KICAD_VERSION}"
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties( kicommon PROPERTIES
|
|
|
|
OUTPUT_NAME kicommon
|
|
|
|
SOVERSION ${KICAD_MAJOR_MINOR_PATCH_VERSION}
|
* 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-09-09 03:43:18 +00:00
|
|
|
|
|
|
|
install( TARGETS kicommon
|
|
|
|
RUNTIME DESTINATION ${KICAD_LIB}
|
|
|
|
LIBRARY DESTINATION ${KICAD_LIB}
|
* 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
|
|
|
COMPONENT binary
|
|
|
|
)
|
2023-09-09 03:43:18 +00:00
|
|
|
|
|
|
|
if( APPLE )
|
|
|
|
# puts library into the main kicad.app bundle in build tree
|
|
|
|
set_target_properties( kicommon PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${OSX_BUNDLE_BUILD_LIB_DIR}"
|
|
|
|
INSTALL_NAME_DIR "${OSX_BUNDLE_BUILD_LIB_DIR}"
|
|
|
|
)
|
2023-09-20 18:37:31 +00:00
|
|
|
set_target_properties( kicommon PROPERTIES INSTALL_RPATH
|
|
|
|
"@executable_path/../Frameworks" )
|
|
|
|
set_target_properties( kicommon PROPERTIES BUILD_WITH_INSTALL_RPATH 1 )
|
* 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()
|
|
|
|
|
2023-09-09 03:43:18 +00:00
|
|
|
target_compile_definitions( kicommon PRIVATE KICOMMON_DLL=1 )
|
|
|
|
|
|
|
|
target_include_directories( kicommon
|
|
|
|
PUBLIC
|
|
|
|
.
|
|
|
|
${CMAKE_BINARY_DIR}
|
2024-01-14 04:14:02 +00:00
|
|
|
$<TARGET_PROPERTY:magic_enum,INTERFACE_INCLUDE_DIRECTORIES>
|
2023-09-14 01:37:35 +00:00
|
|
|
$<TARGET_PROPERTY:pegtl,INTERFACE_INCLUDE_DIRECTORIES>
|
2024-01-18 03:21:28 +00:00
|
|
|
$<TARGET_PROPERTY:expected,INTERFACE_INCLUDE_DIRECTORIES>
|
2023-01-29 18:06:05 +00:00
|
|
|
$<TARGET_PROPERTY:kiapi,INTERFACE_INCLUDE_DIRECTORIES>
|
2023-09-09 03:43:18 +00:00
|
|
|
)
|
|
|
|
|
2023-09-15 17:01:38 +00:00
|
|
|
add_dependencies( kicommon pegtl version_header )
|
2023-09-14 01:37:35 +00:00
|
|
|
|
2023-09-15 00:19:11 +00:00
|
|
|
if( MSVC )
|
|
|
|
target_sources( kicommon PRIVATE ${CMAKE_SOURCE_DIR}/resources/msw/kicommon-dll.rc )
|
|
|
|
endif()
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_ABOUT_DLG_SRCS
|
2010-09-01 13:31:20 +00:00
|
|
|
dialog_about/AboutDialog_main.cpp
|
|
|
|
dialog_about/dialog_about.cpp
|
|
|
|
dialog_about/dialog_about_base.cpp
|
2016-01-16 01:56:57 +00:00
|
|
|
)
|
|
|
|
|
2023-09-14 21:39:42 +00:00
|
|
|
set( COMMON_GIT_DLG_SRCS
|
|
|
|
dialogs/git/dialog_git_commit.cpp
|
|
|
|
dialogs/git/dialog_git_switch.cpp
|
|
|
|
dialogs/git/dialog_git_auth.cpp
|
|
|
|
dialogs/git/dialog_git_repository.cpp
|
|
|
|
dialogs/git/dialog_git_repository_base.cpp
|
|
|
|
dialogs/git/panel_git_repos.cpp
|
|
|
|
dialogs/git/panel_git_repos_base.cpp
|
|
|
|
|
|
|
|
)
|
|
|
|
|
2016-01-16 01:56:57 +00:00
|
|
|
set( COMMON_DLG_SRCS
|
2023-09-14 21:39:42 +00:00
|
|
|
${COMMON_GIT_DLG_SRCS}
|
2022-09-03 18:29:02 +00:00
|
|
|
dialogs/dialog_assign_netclass.cpp
|
|
|
|
dialogs/dialog_assign_netclass_base.cpp
|
2023-03-09 17:41:18 +00:00
|
|
|
dialogs/dialog_book_reporter.cpp
|
|
|
|
dialogs/dialog_book_reporter_base.cpp
|
2018-09-22 11:54:01 +00:00
|
|
|
dialogs/dialog_color_picker.cpp
|
|
|
|
dialogs/dialog_color_picker_base.cpp
|
2018-03-07 13:05:12 +00:00
|
|
|
dialogs/dialog_configure_paths.cpp
|
|
|
|
dialogs/dialog_configure_paths_base.cpp
|
2021-09-14 18:26:03 +00:00
|
|
|
dialogs/dialog_display_html_text_base.cpp
|
2018-07-19 19:15:40 +00:00
|
|
|
dialogs/dialog_edit_library_tables.cpp
|
2019-01-20 01:45:17 +00:00
|
|
|
dialogs/dialog_global_lib_table_config.cpp
|
|
|
|
dialogs/dialog_global_lib_table_config_base.cpp
|
2023-08-30 15:21:56 +00:00
|
|
|
dialogs/dialog_grid_settings.cpp
|
|
|
|
dialogs/dialog_grid_settings_base.cpp
|
2018-10-02 21:37:15 +00:00
|
|
|
dialogs/dialog_hotkey_list.cpp
|
2020-09-10 18:28:00 +00:00
|
|
|
dialogs/dialog_HTML_reporter_base.cpp
|
2023-10-30 06:34:45 +00:00
|
|
|
dialogs/dialog_import_choose_project.cpp
|
|
|
|
dialogs/dialog_import_choose_project_base.cpp
|
2020-12-10 17:34:26 +00:00
|
|
|
dialogs/dialog_locked_items_query.cpp
|
|
|
|
dialogs/dialog_locked_items_query_base.cpp
|
2010-11-20 10:59:59 +00:00
|
|
|
dialogs/dialog_page_settings_base.cpp
|
2021-05-01 22:44:22 +00:00
|
|
|
dialogs/dialog_paste_special.cpp
|
|
|
|
dialogs/dialog_paste_special_base.cpp
|
2023-05-28 19:10:07 +00:00
|
|
|
dialogs/dialog_plugin_options.cpp
|
|
|
|
dialogs/dialog_plugin_options_base.cpp
|
2018-03-12 22:45:17 +00:00
|
|
|
dialogs/dialog_text_entry_base.cpp
|
2020-12-19 15:08:31 +00:00
|
|
|
dialogs/dialog_page_settings.cpp
|
2018-10-05 14:41:17 +00:00
|
|
|
dialogs/dialog_print_generic.cpp
|
|
|
|
dialogs/dialog_print_generic_base.cpp
|
2018-03-12 22:45:17 +00:00
|
|
|
dialogs/dialog_text_entry.cpp
|
2020-10-20 21:23:05 +00:00
|
|
|
dialogs/dialog_unit_entry.cpp
|
|
|
|
dialogs/dialog_unit_entry_base.cpp
|
2020-07-07 10:17:30 +00:00
|
|
|
dialogs/eda_list_dialog.cpp
|
|
|
|
dialogs/eda_list_dialog_base.cpp
|
2022-09-24 03:45:00 +00:00
|
|
|
dialogs/eda_reorderable_list_dialog.cpp
|
|
|
|
dialogs/eda_reorderable_list_dialog_base.cpp
|
2020-08-19 10:31:20 +00:00
|
|
|
dialogs/eda_view_switcher.cpp
|
|
|
|
dialogs/eda_view_switcher_base.cpp
|
2023-05-31 02:06:49 +00:00
|
|
|
dialogs/hotkey_cycle_popup.cpp
|
2021-09-14 18:26:03 +00:00
|
|
|
dialogs/html_message_box.cpp
|
2020-02-03 16:46:58 +00:00
|
|
|
dialogs/panel_color_settings_base.cpp
|
|
|
|
dialogs/panel_color_settings.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
dialogs/panel_common_settings.cpp
|
|
|
|
dialogs/panel_common_settings_base.cpp
|
2022-08-29 22:18:38 +00:00
|
|
|
dialogs/panel_gal_display_options.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
dialogs/panel_hotkeys_editor.cpp
|
2022-07-07 14:17:21 +00:00
|
|
|
dialogs/panel_image_editor.cpp
|
|
|
|
dialogs/panel_image_editor_base.cpp
|
2023-08-26 12:29:24 +00:00
|
|
|
dialogs/panel_grid_settings.cpp
|
|
|
|
dialogs/panel_grid_settings_base.cpp
|
2020-05-17 00:19:48 +00:00
|
|
|
dialogs/panel_mouse_settings.cpp
|
|
|
|
dialogs/panel_mouse_settings_base.cpp
|
2023-11-23 01:03:34 +00:00
|
|
|
dialogs/panel_packages_and_updates.cpp
|
|
|
|
dialogs/panel_packages_and_updates_base.cpp
|
2024-01-18 03:21:28 +00:00
|
|
|
dialogs/panel_plugin_settings.cpp
|
|
|
|
dialogs/panel_plugin_settings_base.cpp
|
2020-07-03 22:30:23 +00:00
|
|
|
dialogs/panel_setup_netclasses.cpp
|
|
|
|
dialogs/panel_setup_netclasses_base.cpp
|
|
|
|
dialogs/panel_setup_severities.cpp
|
2020-03-26 11:02:59 +00:00
|
|
|
dialogs/panel_text_variables.cpp
|
|
|
|
dialogs/panel_text_variables_base.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2010-09-01 13:31:20 +00:00
|
|
|
|
2022-04-02 01:21:55 +00:00
|
|
|
if( KICAD_USE_SENTRY )
|
|
|
|
list( APPEND COMMON_DLG_SRCS
|
|
|
|
dialogs/panel_data_collection.cpp
|
|
|
|
dialogs/panel_data_collection_base.cpp )
|
|
|
|
endif()
|
|
|
|
|
2016-01-16 01:56:57 +00:00
|
|
|
set( COMMON_WIDGET_SRCS
|
2020-08-09 10:55:00 +00:00
|
|
|
widgets/app_progress_dialog.cpp
|
2020-07-11 17:42:00 +00:00
|
|
|
widgets/bitmap_toggle.cpp
|
2018-10-01 16:18:29 +00:00
|
|
|
widgets/button_row_panel.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/color_swatch.cpp
|
2022-01-03 01:20:25 +00:00
|
|
|
widgets/font_choice.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/footprint_choice.cpp
|
2023-03-10 17:15:40 +00:00
|
|
|
widgets/footprint_diff_widget.cpp
|
2017-03-10 19:11:41 +00:00
|
|
|
widgets/footprint_preview_widget.cpp
|
2017-03-23 00:59:25 +00:00
|
|
|
widgets/footprint_select_widget.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/gal_options_panel.cpp
|
2023-09-04 09:32:13 +00:00
|
|
|
widgets/gal_options_panel_base.cpp
|
2020-08-20 01:11:22 +00:00
|
|
|
widgets/grid_bitmap_toggle.cpp
|
2023-02-26 23:39:31 +00:00
|
|
|
widgets/grid_button.cpp
|
2020-07-08 18:29:16 +00:00
|
|
|
widgets/grid_color_swatch_helpers.cpp
|
2018-03-28 17:14:04 +00:00
|
|
|
widgets/grid_combobox.cpp
|
2018-02-08 12:16:07 +00:00
|
|
|
widgets/grid_icon_text_helpers.cpp
|
2018-07-20 15:03:43 +00:00
|
|
|
widgets/grid_text_button_helpers.cpp
|
2020-08-24 01:46:01 +00:00
|
|
|
widgets/grid_text_helpers.cpp
|
2023-09-11 23:09:55 +00:00
|
|
|
widgets/html_window.cpp
|
2017-02-22 12:34:23 +00:00
|
|
|
widgets/indicator_icon.cpp
|
2022-12-29 14:02:25 +00:00
|
|
|
widgets/wx_infobar.cpp
|
2018-09-22 10:51:18 +00:00
|
|
|
widgets/layer_box_selector.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
widgets/lib_tree.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/mathplot.cpp
|
2020-10-25 04:49:02 +00:00
|
|
|
widgets/msgpanel.cpp
|
2020-10-20 01:32:49 +00:00
|
|
|
widgets/number_badge.cpp
|
2018-05-14 17:34:18 +00:00
|
|
|
widgets/paged_dialog.cpp
|
2020-02-04 08:40:25 +00:00
|
|
|
widgets/properties_panel.cpp
|
2022-09-14 02:59:57 +00:00
|
|
|
widgets/search_pane.cpp
|
|
|
|
widgets/search_pane_base.cpp
|
|
|
|
widgets/search_pane_tab.cpp
|
2020-01-03 15:09:26 +00:00
|
|
|
widgets/split_button.cpp
|
2018-05-30 10:52:19 +00:00
|
|
|
widgets/stepped_slider.cpp
|
2017-11-23 12:35:03 +00:00
|
|
|
widgets/text_ctrl_eval.cpp
|
2017-11-10 23:27:46 +00:00
|
|
|
widgets/unit_binder.cpp
|
2019-01-28 21:37:36 +00:00
|
|
|
widgets/widget_save_restore.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
widgets/widget_hotkey_list.cpp
|
2021-03-02 04:10:03 +00:00
|
|
|
widgets/wx_aui_art_providers.cpp
|
2021-08-20 01:15:14 +00:00
|
|
|
widgets/wx_aui_utils.cpp
|
2019-05-12 13:08:30 +00:00
|
|
|
widgets/wx_busy_indicator.cpp
|
2023-03-10 17:15:40 +00:00
|
|
|
widgets/wx_collapsible_pane.cpp
|
2022-08-28 22:25:01 +00:00
|
|
|
widgets/wx_combobox.cpp
|
2023-04-07 23:07:33 +00:00
|
|
|
widgets/wx_dataviewctrl.cpp
|
2021-03-26 15:47:02 +00:00
|
|
|
widgets/wx_ellipsized_static_text.cpp
|
2018-05-30 10:52:19 +00:00
|
|
|
widgets/wx_grid.cpp
|
2022-09-03 18:29:02 +00:00
|
|
|
widgets/wx_html_report_box.cpp
|
|
|
|
widgets/wx_html_report_panel.cpp
|
|
|
|
widgets/wx_html_report_panel_base.cpp
|
2022-07-09 18:41:03 +00:00
|
|
|
widgets/wx_listbox.cpp
|
2021-11-14 15:01:00 +00:00
|
|
|
widgets/wx_panel.cpp
|
2021-08-14 20:05:21 +00:00
|
|
|
widgets/wx_progress_reporters.cpp
|
2021-11-12 01:14:36 +00:00
|
|
|
widgets/wx_splitter_window.cpp
|
2023-05-10 17:13:52 +00:00
|
|
|
widgets/wx_treebook.cpp
|
2016-01-16 01:56:57 +00:00
|
|
|
)
|
|
|
|
|
2021-02-22 23:47:17 +00:00
|
|
|
set( COMMON_DRAWING_SHEET_SRCS
|
|
|
|
drawing_sheet/ds_data_item.cpp
|
|
|
|
drawing_sheet/ds_data_model.cpp
|
|
|
|
drawing_sheet/ds_data_model_io.cpp
|
|
|
|
drawing_sheet/drawing_sheet_default_description.cpp
|
|
|
|
drawing_sheet/ds_draw_item.cpp
|
|
|
|
drawing_sheet/ds_proxy_undo_item.cpp
|
|
|
|
drawing_sheet/ds_proxy_view_item.cpp
|
2021-08-27 11:52:13 +00:00
|
|
|
drawing_sheet/drawing_sheet_parser.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
)
|
2013-05-24 08:59:40 +00:00
|
|
|
|
2017-03-10 13:33:00 +00:00
|
|
|
set( COMMON_PREVIEW_ITEMS_SRCS
|
2017-02-26 20:08:45 +00:00
|
|
|
preview_items/arc_assistant.cpp
|
|
|
|
preview_items/arc_geom_manager.cpp
|
2017-02-23 06:23:17 +00:00
|
|
|
preview_items/centreline_rect_item.cpp
|
2019-05-13 13:17:24 +00:00
|
|
|
preview_items/draw_context.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
preview_items/polygon_geom_manager.cpp
|
|
|
|
preview_items/polygon_item.cpp
|
2017-03-09 09:09:13 +00:00
|
|
|
preview_items/preview_utils.cpp
|
|
|
|
preview_items/ruler_item.cpp
|
2017-03-10 13:34:06 +00:00
|
|
|
preview_items/selection_area.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
preview_items/simple_overlay_item.cpp
|
2020-07-03 15:05:17 +00:00
|
|
|
preview_items/two_point_assistant.cpp
|
2017-03-10 13:33:00 +00:00
|
|
|
)
|
|
|
|
|
2018-01-28 18:12:26 +00:00
|
|
|
set( PLOTTERS_CONTROL_SRCS
|
|
|
|
plotters/plotter.cpp
|
|
|
|
plotters/DXF_plotter.cpp
|
|
|
|
plotters/GERBER_plotter.cpp
|
|
|
|
plotters/HPGL_plotter.cpp
|
|
|
|
plotters/PDF_plotter.cpp
|
|
|
|
plotters/PS_plotter.cpp
|
|
|
|
plotters/SVG_plotter.cpp
|
|
|
|
plotters/common_plot_functions.cpp
|
|
|
|
)
|
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
set( COMMON_IO_SRCS
|
2023-12-27 00:25:41 +00:00
|
|
|
io/io_base.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
io/io_utils.cpp
|
2020-08-23 19:01:08 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Altium
|
2024-02-04 17:14:19 +00:00
|
|
|
io/altium/altium_binary_parser.cpp
|
|
|
|
io/altium/altium_ascii_parser.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
io/altium/altium_parser_utils.cpp
|
2024-02-04 17:14:19 +00:00
|
|
|
io/altium/altium_props_utils.cpp
|
2020-08-29 18:09:48 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Cadstar
|
|
|
|
io/cadstar/cadstar_archive_parser.cpp
|
|
|
|
io/cadstar/cadstar_parts_lib_parser.cpp
|
2020-10-03 20:48:58 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# Eagle
|
|
|
|
io/eagle/eagle_parser.cpp
|
|
|
|
|
|
|
|
# EasyEDA
|
|
|
|
io/easyeda/easyeda_parser_base.cpp
|
|
|
|
io/easyeda/easyeda_parser_structs.cpp
|
2023-09-06 11:58:39 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# EasyEDA pro
|
|
|
|
io/easyedapro/easyedapro_parser.cpp
|
|
|
|
io/easyedapro/easyedapro_import_utils.cpp
|
2023-09-06 11:58:39 +00:00
|
|
|
)
|
|
|
|
|
2023-08-18 12:55:01 +00:00
|
|
|
set( COMMON_IMPORT_GFX_SRCS
|
|
|
|
import_gfx/graphics_import_mgr.cpp
|
|
|
|
import_gfx/graphics_importer.cpp
|
|
|
|
import_gfx/graphics_importer_buffer.cpp
|
|
|
|
import_gfx/dxf_import_plugin.cpp
|
|
|
|
import_gfx/svg_import_plugin.cpp
|
|
|
|
)
|
|
|
|
|
2023-09-14 21:39:42 +00:00
|
|
|
set( COMMON_GIT_SRCS
|
|
|
|
git/git_add_to_index_handler.cpp
|
|
|
|
git/git_clone_handler.cpp
|
|
|
|
git/git_commit_handler.cpp
|
|
|
|
git/git_pull_handler.cpp
|
|
|
|
git/git_push_handler.cpp
|
|
|
|
git/git_remove_from_index_handler.cpp
|
|
|
|
git/git_resolve_conflict_handler.cpp
|
|
|
|
git/git_revert_handler.cpp
|
|
|
|
git/git_sync_handler.cpp
|
|
|
|
git/kicad_git_common.cpp
|
|
|
|
git/kicad_git_errors.cpp
|
|
|
|
)
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_SRCS
|
* 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
|
|
|
${LIB_KICAD_SRCS}
|
2010-09-01 13:31:20 +00:00
|
|
|
${COMMON_ABOUT_DLG_SRCS}
|
2016-01-16 01:56:57 +00:00
|
|
|
${COMMON_DLG_SRCS}
|
|
|
|
${COMMON_WIDGET_SRCS}
|
2021-02-22 23:47:17 +00:00
|
|
|
${COMMON_DRAWING_SHEET_SRCS}
|
2017-03-10 13:33:00 +00:00
|
|
|
${COMMON_PREVIEW_ITEMS_SRCS}
|
2018-01-28 18:12:26 +00:00
|
|
|
${PLOTTERS_CONTROL_SRCS}
|
2023-12-19 17:39:26 +00:00
|
|
|
${COMMON_IO_SRCS}
|
2021-12-28 22:13:54 +00:00
|
|
|
${FONT_SRCS}
|
2023-08-18 12:55:01 +00:00
|
|
|
${COMMON_IMPORT_GFX_SRCS}
|
2023-09-14 21:39:42 +00:00
|
|
|
${COMMON_GIT_SRCS}
|
2022-10-04 01:53:37 +00:00
|
|
|
jobs/job_dispatcher.cpp
|
2022-08-27 18:02:51 +00:00
|
|
|
base_screen.cpp
|
* 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
|
|
|
bin_mod.cpp
|
2018-01-29 08:39:13 +00:00
|
|
|
bitmap_base.cpp
|
2018-09-19 13:06:29 +00:00
|
|
|
board_printout.cpp
|
2023-08-14 00:31:19 +00:00
|
|
|
cli_progress_reporter.cpp
|
2020-06-19 03:26:10 +00:00
|
|
|
commit.cpp
|
2023-09-23 03:17:53 +00:00
|
|
|
dpi_scaling_common.cpp
|
2023-09-07 00:07:09 +00:00
|
|
|
draw_panel_gal.cpp
|
2023-09-23 03:17:53 +00:00
|
|
|
gal_display_options_common.cpp
|
2019-05-31 12:15:25 +00:00
|
|
|
gr_text.cpp
|
2018-01-29 15:39:40 +00:00
|
|
|
eda_base_frame.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
eda_dde.cpp
|
|
|
|
eda_doc.cpp
|
2019-06-10 12:05:59 +00:00
|
|
|
eda_draw_frame.cpp
|
2020-10-14 01:06:53 +00:00
|
|
|
eda_item.cpp
|
2022-08-28 23:32:34 +00:00
|
|
|
eda_shape.cpp
|
2022-08-28 13:44:31 +00:00
|
|
|
eda_text.cpp
|
2022-09-14 22:28:09 +00:00
|
|
|
eda_tools.cpp
|
2017-11-14 10:17:16 +00:00
|
|
|
env_paths.cpp
|
2017-02-09 09:36:38 +00:00
|
|
|
executable_names.cpp
|
2018-03-07 13:05:12 +00:00
|
|
|
filename_resolver.cpp
|
2022-12-29 14:02:25 +00:00
|
|
|
file_history.cpp
|
2011-01-14 17:43:30 +00:00
|
|
|
filter_reader.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
footprint_filter.cpp
|
|
|
|
footprint_info.cpp
|
2016-09-19 11:01:36 +00:00
|
|
|
gbr_metadata.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
gr_basic.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
grid_tricks.cpp
|
2018-09-26 14:26:26 +00:00
|
|
|
hotkey_store.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
hotkeys_basic.cpp
|
2021-09-14 22:45:14 +00:00
|
|
|
kiface_base.cpp
|
2014-04-21 06:28:17 +00:00
|
|
|
kiway_player.cpp
|
2022-06-08 21:05:47 +00:00
|
|
|
lib_table_grid_tricks.cpp
|
2018-07-27 20:47:51 +00:00
|
|
|
lib_tree_model.cpp
|
|
|
|
lib_tree_model_adapter.cpp
|
2018-01-29 10:37:29 +00:00
|
|
|
marker_base.cpp
|
2020-07-05 02:02:12 +00:00
|
|
|
origin_transforms.cpp
|
2018-10-05 14:41:17 +00:00
|
|
|
printout.cpp
|
2013-04-08 21:04:45 +00:00
|
|
|
ptree.cpp
|
2020-03-16 11:05:01 +00:00
|
|
|
rc_item.cpp
|
2019-01-29 10:50:50 +00:00
|
|
|
refdes_utils.cpp
|
2020-04-14 12:25:00 +00:00
|
|
|
render_settings.cpp
|
2013-04-25 16:29:35 +00:00
|
|
|
reporter.cpp
|
2020-05-27 22:28:36 +00:00
|
|
|
scintilla_tricks.cpp
|
2018-02-19 11:09:40 +00:00
|
|
|
status_popup.cpp
|
2022-11-06 16:51:52 +00:00
|
|
|
string_utf8_map.cpp
|
2021-07-17 19:56:18 +00:00
|
|
|
stroke_params.cpp
|
2020-03-26 11:02:59 +00:00
|
|
|
template_fieldnames.cpp
|
2020-05-30 11:31:19 +00:00
|
|
|
textentry_tricks.cpp
|
2020-07-16 14:11:31 +00:00
|
|
|
title_block.cpp
|
2018-01-31 08:23:20 +00:00
|
|
|
undo_redo_container.cpp
|
2014-12-11 12:00:59 +00:00
|
|
|
validators.cpp
|
2021-02-22 23:47:17 +00:00
|
|
|
drawing_sheet/ds_painter.cpp
|
2010-08-07 15:25:18 +00:00
|
|
|
xnode.cpp
|
2023-09-23 03:17:53 +00:00
|
|
|
view/wx_view_controls.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( COMMON_SRCS
|
2013-09-23 15:02:25 +00:00
|
|
|
${COMMON_SRCS}
|
2017-03-07 13:30:15 +00:00
|
|
|
|
2020-09-09 02:54:17 +00:00
|
|
|
origin_viewitem.cpp
|
2020-09-19 23:41:26 +00:00
|
|
|
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/action_manager.cpp
|
2019-05-14 19:21:10 +00:00
|
|
|
tool/action_menu.cpp
|
|
|
|
tool/action_toolbar.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/actions.cpp
|
2019-06-09 21:57:23 +00:00
|
|
|
tool/common_control.cpp
|
2024-06-08 13:00:18 +00:00
|
|
|
tool/library_editor_control.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/common_tools.cpp
|
|
|
|
tool/conditional_menu.cpp
|
2019-05-08 18:56:03 +00:00
|
|
|
tool/edit_constraints.cpp
|
|
|
|
tool/edit_points.cpp
|
2020-07-29 23:50:25 +00:00
|
|
|
tool/editor_conditions.cpp
|
2021-01-16 23:17:32 +00:00
|
|
|
tool/grid_helper.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/grid_menu.cpp
|
2019-07-15 23:44:01 +00:00
|
|
|
tool/picker_tool.cpp
|
2023-06-21 01:57:20 +00:00
|
|
|
tool/properties_tool.cpp
|
2021-06-06 15:07:55 +00:00
|
|
|
tool/selection.cpp
|
2021-09-05 20:37:52 +00:00
|
|
|
tool/selection_tool.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/selection_conditions.cpp
|
2014-07-09 11:50:27 +00:00
|
|
|
tool/tool_action.cpp
|
2013-09-11 12:42:12 +00:00
|
|
|
tool/tool_base.cpp
|
|
|
|
tool/tool_dispatcher.cpp
|
|
|
|
tool/tool_event.cpp
|
2020-04-19 00:51:49 +00:00
|
|
|
tool/tools_holder.cpp
|
2013-09-11 12:42:12 +00:00
|
|
|
tool/tool_interactive.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/tool_manager.cpp
|
2017-02-28 03:04:44 +00:00
|
|
|
tool/tool_menu.cpp
|
2017-12-27 16:06:27 +00:00
|
|
|
tool/zoom_menu.cpp
|
2017-08-31 02:35:30 +00:00
|
|
|
tool/zoom_tool.cpp
|
2013-09-12 15:42:28 +00:00
|
|
|
|
2022-07-24 22:40:47 +00:00
|
|
|
settings/cvpcb_settings.cpp
|
2022-05-29 19:29:32 +00:00
|
|
|
|
2023-06-21 01:57:20 +00:00
|
|
|
properties/color4d_variant.cpp
|
2022-11-03 02:50:49 +00:00
|
|
|
properties/eda_angle_variant.cpp
|
2022-11-25 17:37:18 +00:00
|
|
|
properties/pg_cell_renderer.cpp
|
2022-11-03 02:50:49 +00:00
|
|
|
properties/pg_editors.cpp
|
|
|
|
properties/pg_properties.cpp
|
|
|
|
properties/property_mgr.cpp
|
2024-01-10 00:25:05 +00:00
|
|
|
properties/std_optional_variants.cpp
|
2022-11-03 02:50:49 +00:00
|
|
|
|
2022-05-29 19:29:32 +00:00
|
|
|
database/database_connection.cpp
|
2023-09-19 01:09:21 +00:00
|
|
|
|
|
|
|
http_lib/http_lib_connection.cpp
|
|
|
|
http_lib/http_lib_settings.cpp
|
|
|
|
|
2024-01-20 23:35:29 +00:00
|
|
|
api/api_enums.cpp
|
|
|
|
api/api_utils.cpp
|
2014-10-22 23:25:59 +00:00
|
|
|
)
|
2019-12-28 18:17:55 +00:00
|
|
|
|
2023-01-29 18:06:05 +00:00
|
|
|
if( KICAD_IPC_API )
|
|
|
|
set( COMMON_SRCS
|
|
|
|
${COMMON_SRCS}
|
2024-01-20 23:35:29 +00:00
|
|
|
api/api_handler_editor.cpp
|
2023-01-29 18:06:05 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-12-28 18:17:55 +00:00
|
|
|
add_library( common STATIC
|
|
|
|
${COMMON_SRCS}
|
|
|
|
)
|
2022-06-30 11:00:37 +00:00
|
|
|
|
2015-07-10 18:47:59 +00:00
|
|
|
add_dependencies( common version_header )
|
2020-08-23 19:01:08 +00:00
|
|
|
add_dependencies( common compoundfilereader ) # used by altium_parser.cpp
|
2020-07-30 00:13:19 +00:00
|
|
|
|
2016-01-10 21:44:37 +00:00
|
|
|
target_link_libraries( common
|
2022-01-02 02:21:49 +00:00
|
|
|
libcontext
|
2020-01-07 17:12:59 +00:00
|
|
|
kimath
|
2020-06-03 14:58:54 +00:00
|
|
|
kiplatform
|
2023-09-09 03:43:18 +00:00
|
|
|
kicommon
|
2023-04-04 23:34:46 +00:00
|
|
|
core
|
2022-08-04 02:49:41 +00:00
|
|
|
fmt::fmt
|
2017-02-23 00:45:52 +00:00
|
|
|
gal
|
2023-08-18 12:55:01 +00:00
|
|
|
nanosvg
|
|
|
|
dxflib_qcad
|
|
|
|
tinyspline_lib
|
2021-03-19 23:06:29 +00:00
|
|
|
scripting
|
2023-07-27 02:03:05 +00:00
|
|
|
nlohmann_json
|
2021-03-15 21:56:13 +00:00
|
|
|
pybind11::embed
|
2022-01-02 02:21:49 +00:00
|
|
|
compoundfilereader
|
2023-03-10 13:22:42 +00:00
|
|
|
Boost::headers
|
2023-03-11 13:19:04 +00:00
|
|
|
# Database support needs these two
|
|
|
|
nanodbc # for now; maybe hoist out of common
|
|
|
|
Boost::locale
|
2019-03-25 21:45:59 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
2020-02-21 09:37:59 +00:00
|
|
|
${EXTRA_LIBS}
|
2022-01-01 01:21:03 +00:00
|
|
|
# outline font support
|
2023-04-07 17:12:43 +00:00
|
|
|
${FREETYPE_LIBRARIES}
|
|
|
|
${HarfBuzz_LIBRARIES}
|
|
|
|
${Fontconfig_LIBRARIES}
|
2016-01-10 21:44: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
|
|
|
|
2022-04-02 01:21:55 +00:00
|
|
|
if( KICAD_USE_SENTRY )
|
|
|
|
target_link_libraries( common
|
|
|
|
sentry )
|
|
|
|
endif()
|
|
|
|
|
2023-01-29 18:06:05 +00:00
|
|
|
if( KICAD_IPC_API )
|
|
|
|
target_link_libraries( common
|
|
|
|
kinng
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-01-02 02:21:49 +00:00
|
|
|
target_include_directories( common
|
|
|
|
PUBLIC
|
|
|
|
.
|
|
|
|
${CMAKE_BINARY_DIR}
|
2022-10-13 03:17:05 +00:00
|
|
|
$<TARGET_PROPERTY:argparse::argparse,INTERFACE_INCLUDE_DIRECTORIES>
|
2024-01-20 23:35:29 +00:00
|
|
|
$<TARGET_PROPERTY:kiapi,INTERFACE_INCLUDE_DIRECTORIES>
|
2020-01-13 01:44:19 +00:00
|
|
|
)
|
|
|
|
|
2021-12-30 17:26:51 +00:00
|
|
|
# text markup support
|
|
|
|
add_dependencies( common pegtl )
|
2023-01-29 18:06:05 +00:00
|
|
|
|
2021-12-30 17:26:51 +00:00
|
|
|
target_include_directories( common PUBLIC
|
|
|
|
$<TARGET_PROPERTY:pegtl,INTERFACE_INCLUDE_DIRECTORIES>
|
2023-01-29 18:06:05 +00:00
|
|
|
$<TARGET_PROPERTY:magic_enum,INTERFACE_INCLUDE_DIRECTORIES>
|
2021-12-30 17:26:51 +00:00
|
|
|
)
|
|
|
|
|
2022-05-29 19:29:32 +00:00
|
|
|
target_include_directories( common SYSTEM PUBLIC
|
|
|
|
$<TARGET_PROPERTY:nanodbc,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
)
|
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
set( PCB_COMMON_SRCS
|
2017-12-27 16:06:27 +00:00
|
|
|
fp_lib_table.cpp
|
2019-05-14 12:39:34 +00:00
|
|
|
hash_eda.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_base_frame.cpp
|
2023-08-21 14:26:03 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcbexpr_evaluator.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcbexpr_functions.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board_commit.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board_connected_item.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board_design_settings.cpp
|
2022-01-22 19:26:58 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/teardrop/teardrop_parameters.cpp #needed by board_design_settings.cpp
|
2024-02-09 16:25:39 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/router/pns_meander.cpp #needed by board_design_settings.cpp
|
2020-11-12 20:19:22 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board.cpp
|
2020-11-14 18:11:28 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board_item.cpp
|
2021-06-11 16:59:28 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_dimension.cpp
|
2020-10-04 23:34:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_shape.cpp
|
2020-11-12 20:19:22 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_group.cpp
|
2020-11-14 18:11:28 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_marker.cpp
|
2020-11-12 20:19:22 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/footprint.cpp
|
2023-09-04 19:25:47 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/fix_board_shape.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netinfo_item.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netinfo_list.cpp
|
2020-11-12 20:19:22 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pad.cpp
|
2024-04-07 22:01:08 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/padstack.cpp
|
2020-11-11 23:05:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_target.cpp
|
2023-10-23 17:23:24 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_reference_image.cpp
|
2023-05-24 11:43:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_field.cpp
|
2024-01-15 17:29:55 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_table.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_tablecell.cpp
|
2020-10-04 23:34:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_text.cpp
|
2022-01-30 10:52:52 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_textbox.cpp
|
2023-09-28 03:15:54 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/project_pcb.cpp
|
2021-04-16 21:07:06 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/board_stackup_manager/board_stackup.cpp
|
2021-06-11 21:07:02 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_track.cpp
|
2023-10-06 17:04:00 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_generator.cpp
|
2020-11-11 23:05:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/zone.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/collectors.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_algo.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_items.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/connectivity_data.cpp
|
2020-09-25 18:26:58 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/connectivity/from_to_cache.cpp
|
2021-07-14 20:03:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/convert_shape_list_to_polygon.cpp
|
2020-09-15 19:13:45 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_engine.cpp
|
2022-06-17 21:50:59 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_cache_generator.cpp
|
2020-02-19 09:31:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_item.cpp
|
2020-05-15 23:25:33 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_rule.cpp
|
2020-09-12 23:05:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_rule_condition.cpp
|
2020-09-15 19:13:45 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_rule_parser.cpp
|
2020-12-29 20:26:14 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/drc/drc_test_provider.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/footprint_editor_settings.cpp
|
2023-10-07 01:42:38 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/generators_mgr.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/kicad_clipboard.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/kicad_netlist_reader.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/legacy_netlist_reader.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/netlist_reader.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pad_custom_shape_functions.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_draw_panel_gal.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/netlist_reader/pcb_netlist.cpp
|
2020-07-05 02:06:21 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_origin_transforms.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_painter.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_plot_params.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_screen.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_view.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcbnew_settings.cpp
|
2020-06-16 18:15:14 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/ratsnest/ratsnest_data.cpp
|
2021-02-22 23:47:17 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/ratsnest/ratsnest_view_item.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/sel_layer.cpp
|
2023-05-19 18:26:03 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/teardrop/teardrop.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/teardrop/teardrop_parameters.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/teardrop/teardrop_utils.cpp
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/zone_settings.cpp
|
2020-05-22 18:27:05 +00:00
|
|
|
|
2023-12-19 17:39:26 +00:00
|
|
|
# IO files
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/pcb_io.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/pcb_io_mgr.cpp
|
2023-12-24 01:21:58 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/kicad_legacy/pcb_io_kicad_legacy.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr_parser.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/eagle/pcb_io_eagle.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/pcb_io/geda/pcb_io_geda.cpp
|
2023-12-19 17:39:26 +00:00
|
|
|
|
2021-01-16 23:17:32 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_grid_helper.cpp
|
2020-05-22 18:27:05 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_actions.cpp
|
2020-08-13 23:09:17 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_editor_conditions.cpp
|
2020-05-22 18:27:05 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/tools/pcb_viewer_tools.cpp
|
|
|
|
|
2018-08-19 16:11:58 +00:00
|
|
|
widgets/net_selector.cpp
|
2009-02-05 20:53:08 +00:00
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2024-01-20 23:35:29 +00:00
|
|
|
set( PCB_COMMON_SRCS
|
|
|
|
${PCB_COMMON_SRCS}
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/api/api_pcb_enums.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/pcbnew/api/api_pcb_utils.cpp
|
|
|
|
)
|
|
|
|
|
2011-12-31 05:44:00 +00:00
|
|
|
# add -DPCBNEW to compilation of these PCBNEW sources
|
|
|
|
set_source_files_properties( ${PCB_COMMON_SRCS} PROPERTIES
|
|
|
|
COMPILE_DEFINITIONS "PCBNEW"
|
|
|
|
)
|
2011-12-07 05:28:49 +00:00
|
|
|
|
2013-12-30 17:53:12 +00:00
|
|
|
add_library( pcbcommon STATIC ${PCB_COMMON_SRCS} )
|
2014-10-22 23:25:59 +00:00
|
|
|
|
2022-06-15 00:41:10 +00:00
|
|
|
target_include_directories( pcbcommon PRIVATE
|
|
|
|
)
|
2022-06-30 11:00:37 +00:00
|
|
|
|
2019-01-31 11:53:01 +00:00
|
|
|
target_link_libraries( pcbcommon PUBLIC
|
2023-09-06 21:19:38 +00:00
|
|
|
core
|
2019-01-31 11:53:01 +00:00
|
|
|
common
|
2020-06-21 15:56:24 +00:00
|
|
|
delaunator
|
2020-01-07 17:12:59 +00:00
|
|
|
kimath
|
2020-06-03 14:58:54 +00:00
|
|
|
kiplatform
|
2019-01-31 11:53:01 +00:00
|
|
|
)
|
|
|
|
|
2023-04-07 17:08:43 +00:00
|
|
|
message( STATUS "Including 3Dconnexion SpaceMouse navigation support in pcbcommon" )
|
|
|
|
add_subdirectory( ../pcbnew/navlib ./navlib)
|
|
|
|
target_link_libraries( pcbcommon PUBLIC pcbnew_navlib)
|
2021-10-27 09:28:49 +00:00
|
|
|
|
2020-06-21 15:56:24 +00:00
|
|
|
add_dependencies( pcbcommon delaunator )
|
2018-08-03 11:51:41 +00:00
|
|
|
|
2020-07-30 19:33:41 +00:00
|
|
|
# The lemon grammar for the numeric evaluator
|
|
|
|
generate_lemon_grammar(
|
2024-05-08 00:44:19 +00:00
|
|
|
kicommon
|
2020-07-30 19:33:41 +00:00
|
|
|
libeval
|
|
|
|
libeval/numeric_evaluator.cpp
|
|
|
|
libeval/grammar.lemon
|
|
|
|
)
|
|
|
|
|
|
|
|
# The lemon grammar for the expression compiler
|
|
|
|
generate_lemon_grammar(
|
2024-05-08 00:44:19 +00:00
|
|
|
kicommon
|
2020-07-30 19:33:41 +00:00
|
|
|
libeval_compiler
|
|
|
|
libeval_compiler/libeval_compiler.cpp
|
|
|
|
libeval_compiler/grammar.lemon
|
|
|
|
)
|
|
|
|
|
2021-07-17 19:56:18 +00:00
|
|
|
# auto-generate stroke_params_lexer.h and stroke_params_keywords.cpp
|
2021-12-28 10:58:46 +00:00
|
|
|
# Called twice one for common and one for gal, to ensure the files are created
|
|
|
|
# on all devel tools ( Linux and msys2 )
|
|
|
|
# works on Linux:
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2021-07-17 19:56:18 +00:00
|
|
|
stroke_params.keywords
|
|
|
|
stroke_params_lexer.h
|
|
|
|
stroke_params_keywords.cpp
|
|
|
|
STROKEPARAMS_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2021-07-17 19:56:18 +00:00
|
|
|
)
|
2020-07-30 19:33:41 +00:00
|
|
|
|
2010-08-09 02:03:16 +00:00
|
|
|
# auto-generate netlist_lexer.h and netlist_keywords.cpp
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2019-07-03 09:08:55 +00:00
|
|
|
netlist.keywords
|
|
|
|
netlist_lexer.h
|
|
|
|
netlist_keywords.cpp
|
2010-12-27 16:49:39 +00:00
|
|
|
NL_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2010-08-09 02:03:16 +00:00
|
|
|
)
|
|
|
|
|
2011-12-08 18:23:44 +00:00
|
|
|
# auto-generate pcb_plot_params_lexer.h and pcb_plot_params_keywords.cpp
|
|
|
|
make_lexer(
|
2019-07-03 09:08:55 +00:00
|
|
|
pcbcommon
|
|
|
|
pcb_plot_params.keywords
|
|
|
|
pcb_plot_params_lexer.h
|
|
|
|
pcb_plot_params_keywords.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
PCBPLOTPARAMS_T
|
|
|
|
)
|
2011-12-08 18:23:44 +00:00
|
|
|
|
2020-05-15 23:25:33 +00:00
|
|
|
# auto-generate drc_rules_lexer.h and drc_rules_keywords.cpp
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2020-05-15 23:25:33 +00:00
|
|
|
drc_rules.keywords
|
|
|
|
drc_rules_lexer.h
|
|
|
|
drc_rules_keywords.cpp
|
|
|
|
DRCRULE_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2020-05-15 23:25:33 +00:00
|
|
|
)
|
|
|
|
|
2020-06-16 19:48:47 +00:00
|
|
|
|
2012-06-09 17:00:13 +00:00
|
|
|
# auto-generate pcbnew_sexpr.h and pcbnew_sexpr.cpp
|
2013-05-31 21:22:34 +00:00
|
|
|
make_lexer(
|
2019-07-03 09:08:55 +00:00
|
|
|
pcbcommon
|
|
|
|
pcb.keywords
|
|
|
|
pcb_lexer.h
|
|
|
|
pcb_keywords.cpp
|
2013-05-31 21:22:34 +00:00
|
|
|
PCB_KEYS_T
|
|
|
|
)
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2016-11-20 18:33:07 +00:00
|
|
|
# auto-generate s-expression library table code.
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2019-07-03 09:08:55 +00:00
|
|
|
lib_table.keywords
|
|
|
|
lib_table_lexer.h
|
|
|
|
lib_table_keywords.cpp
|
2016-11-20 23:35:08 +00:00
|
|
|
LIB_TABLE_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2013-05-31 21:22:34 +00:00
|
|
|
)
|
2012-06-09 17:00:13 +00:00
|
|
|
|
2020-03-26 11:02:59 +00:00
|
|
|
# auto-generate s-expression template fieldnames lexer and keywords.
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2020-03-26 11:02:59 +00:00
|
|
|
template_fieldnames.keywords
|
|
|
|
template_fieldnames_lexer.h
|
|
|
|
template_fieldnames_keywords.cpp
|
|
|
|
TFIELD_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2020-03-26 11:02:59 +00:00
|
|
|
)
|
|
|
|
|
2013-06-05 12:03:16 +00:00
|
|
|
# auto-generate page layout reader s-expression page_layout_reader_lexer.h
|
|
|
|
# and title_block_reader_keywords.cpp.
|
2024-01-05 04:32:06 +00:00
|
|
|
make_lexer_export(
|
|
|
|
kicommon
|
2021-08-27 11:52:13 +00:00
|
|
|
drawing_sheet/drawing_sheet.keywords
|
|
|
|
drawing_sheet/drawing_sheet_lexer.h
|
|
|
|
drawing_sheet/drawing_sheet_keywords.cpp
|
|
|
|
DRAWINGSHEET_T
|
2024-01-05 04:32:06 +00:00
|
|
|
KICOMMON_API
|
|
|
|
kicommon.h
|
2013-06-05 12:03:16 +00:00
|
|
|
)
|
|
|
|
|
2013-09-21 07:30:23 +00:00
|
|
|
# This one gets made only when testing.
|
|
|
|
# to build it, first enable #define STAND_ALONE at top of dsnlexer.cpp
|
|
|
|
add_executable( dsntest EXCLUDE_FROM_ALL dsnlexer.cpp )
|
|
|
|
target_link_libraries( dsntest common ${wxWidgets_LIBRARIES} rt )
|