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-02-21 23:58:26 +00:00
|
|
|
add_compile_definitions( PL_EDITOR )
|
2013-07-19 18:27:22 +00:00
|
|
|
|
|
|
|
include_directories(BEFORE ${INC_BEFORE})
|
|
|
|
include_directories(
|
|
|
|
dialogs
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/dialogs
|
2013-07-19 18:27:22 +00:00
|
|
|
${INC_AFTER}
|
|
|
|
)
|
|
|
|
|
2020-11-16 15:10:24 +00:00
|
|
|
set( DIALOGS_SRCS
|
|
|
|
dialogs/properties_frame.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
dialogs/properties_frame_base.cpp
|
|
|
|
dialogs/dialogs_for_printing.cpp
|
|
|
|
dialogs/dialog_new_dataitem_base.cpp
|
2019-06-14 18:14:41 +00:00
|
|
|
dialogs/dialog_design_inspector_base.cpp
|
2020-11-16 15:10:24 +00:00
|
|
|
dialogs/design_inspector.cpp
|
2020-05-27 02:04:21 +00:00
|
|
|
dialogs/panel_pl_editor_color_settings.cpp
|
|
|
|
dialogs/panel_pl_editor_color_settings_base.cpp
|
2021-11-01 11:20:13 +00:00
|
|
|
dialogs/panel_pl_editor_display_options.cpp
|
2020-11-16 15:10:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set( PL_EDITOR_SRCS
|
2018-01-29 08:39:13 +00:00
|
|
|
pl_editor_layout.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
files.cpp
|
|
|
|
pl_editor_frame.cpp
|
2020-01-13 01:44:19 +00:00
|
|
|
pl_editor_settings.cpp
|
2019-06-03 16:29:22 +00:00
|
|
|
pl_draw_panel_gal.cpp
|
2013-07-26 12:50:29 +00:00
|
|
|
pl_editor_undo_redo.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
menubar.cpp
|
|
|
|
toolbars_pl_editor.cpp
|
2019-05-20 10:23:32 +00:00
|
|
|
|
2019-06-17 00:34:21 +00:00
|
|
|
tools/pl_actions.cpp
|
2019-06-08 21:48:22 +00:00
|
|
|
tools/pl_selection.cpp
|
2019-05-20 10:23:32 +00:00
|
|
|
tools/pl_selection_tool.cpp
|
|
|
|
tools/pl_drawing_tools.cpp
|
|
|
|
tools/pl_edit_tool.cpp
|
2019-05-25 00:34:44 +00:00
|
|
|
tools/pl_editor_control.cpp
|
2019-05-20 10:23:32 +00:00
|
|
|
tools/pl_point_editor.cpp
|
2013-07-19 18:27:22 +00:00
|
|
|
)
|
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
set( PL_EDITOR_EXTRA_SRCS
|
2013-07-19 18:27:22 +00:00
|
|
|
)
|
|
|
|
|
2021-12-29 04:54:27 +00:00
|
|
|
if( WIN32 )
|
|
|
|
if( MINGW )
|
|
|
|
# PL_EDITOR_RESOURCES variable is set by the macro.
|
|
|
|
mingw_resource_compiler( pl_editor )
|
|
|
|
else()
|
|
|
|
set( PL_EDITOR_RESOURCES ${CMAKE_SOURCE_DIR}/resources/msw/pl_editor.rc )
|
|
|
|
endif()
|
2014-05-09 14:27:21 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2022-01-31 23:57:56 +00:00
|
|
|
if( APPLE )
|
2014-10-17 17:45:33 +00:00
|
|
|
# setup bundle
|
2021-07-31 03:22:32 +00:00
|
|
|
set( PL_EDITOR_RESOURCES pagelayout_editor.icns pagelayout_editor_doc.icns )
|
|
|
|
set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/pagelayout_editor.icns" PROPERTIES
|
2014-10-17 17:45:33 +00:00
|
|
|
MACOSX_PACKAGE_LOCATION Resources
|
|
|
|
)
|
2021-07-31 03:22:32 +00:00
|
|
|
set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/pagelayout_editor_doc.icns" PROPERTIES
|
2014-10-17 17:45:33 +00:00
|
|
|
MACOSX_PACKAGE_LOCATION Resources
|
|
|
|
)
|
2021-07-31 03:22:32 +00:00
|
|
|
set( MACOSX_BUNDLE_ICON_FILE pagelayout_editor.icns )
|
|
|
|
set( MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad.kicad )
|
2014-10-17 17:45:33 +00:00
|
|
|
set( MACOSX_BUNDLE_NAME pl_editor )
|
|
|
|
endif()
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# a very small program launcher for pl_editor_kiface
|
|
|
|
add_executable( pl_editor WIN32 MACOSX_BUNDLE
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/common/single_top.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/common/pgm_base.cpp
|
2014-10-26 19:54:48 +00:00
|
|
|
${PL_EDITOR_RESOURCES}
|
|
|
|
)
|
2020-01-22 23:27:20 +00:00
|
|
|
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
|
2014-10-26 19:54:48 +00:00
|
|
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PL_EDITOR;PGM_DATA_FILE_EXT=\"kicad_wks\";BUILD_KIWAY_DLL"
|
|
|
|
)
|
|
|
|
target_link_libraries( pl_editor
|
|
|
|
#singletop # replaces common, giving us restrictive control and link warnings.
|
|
|
|
# There's way too much crap coming in from common yet.
|
2018-08-03 12:27:03 +00:00
|
|
|
gal
|
|
|
|
common
|
2014-10-26 19:54:48 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
2014-10-17 17:45:33 +00:00
|
|
|
|
2023-02-22 01:01:45 +00:00
|
|
|
target_link_options( pl_editor PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=pl_editor.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# the main pl_editor program, in DSO form.
|
|
|
|
add_library( pl_editor_kiface MODULE
|
|
|
|
pl_editor.cpp
|
|
|
|
${PL_EDITOR_SRCS}
|
|
|
|
${DIALOGS_SRCS}
|
|
|
|
${PL_EDITOR_EXTRA_SRCS}
|
|
|
|
)
|
|
|
|
target_link_libraries( pl_editor_kiface
|
2018-08-03 12:27:03 +00:00
|
|
|
gal
|
|
|
|
common
|
2014-10-26 19:54:48 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
|
|
|
set_target_properties( pl_editor_kiface PROPERTIES
|
|
|
|
OUTPUT_NAME pl_editor
|
|
|
|
PREFIX ${KIFACE_PREFIX}
|
|
|
|
SUFFIX ${KIFACE_SUFFIX}
|
|
|
|
)
|
2022-06-15 00:41:10 +00:00
|
|
|
|
|
|
|
target_include_directories( pl_editor_kiface PRIVATE
|
|
|
|
$<TARGET_PROPERTY:thread-pool,INTERFACE_INCLUDE_DIRECTORIES>
|
|
|
|
)
|
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
set_source_files_properties( pl_editor.cpp PROPERTIES
|
|
|
|
# The KIFACE is in pcbnew.cpp, export it:
|
|
|
|
COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"
|
|
|
|
)
|
|
|
|
|
2023-02-22 01:01:45 +00:00
|
|
|
target_link_options( pl_editor_kiface PRIVATE
|
2023-02-22 22:17:51 +00:00
|
|
|
$<$<BOOL:${KICAD_MAKE_LINK_MAPS}>:-Wl,--cref,-Map=_pl_editor.kiface.map>
|
2023-02-22 01:01:45 +00:00
|
|
|
)
|
2014-10-17 17:45:33 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# if building pl_editor, then also build pl_editor_kiface if out of date.
|
|
|
|
add_dependencies( pl_editor pl_editor_kiface )
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
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( pl_editor PROPERTIES
|
2019-12-26 12:42:25 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_BINARY_DIR}/pagelayout_editor/Info.plist
|
2014-10-26 19:54:48 +00:00
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
|
2014-10-26 19:54:48 +00:00
|
|
|
# puts binaries into the *.app bundle while linking
|
|
|
|
set_target_properties( pl_editor_kiface PROPERTIES
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_KIFACE_DIR}
|
* 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
|
|
|
|
|
|
|
# put individual bundle outside of main bundle as a first step
|
|
|
|
# will be pulled into the main bundle when creating main bundle
|
|
|
|
install( TARGETS pl_editor
|
|
|
|
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
|
|
|
)
|
2014-10-26 19:54:48 +00:00
|
|
|
install( CODE "
|
|
|
|
# override default embedded path settings
|
|
|
|
${OSX_BUNDLE_OVERRIDE_PATHS}
|
|
|
|
|
|
|
|
# do all the work
|
|
|
|
include( BundleUtilities )
|
|
|
|
fixup_bundle( ${KICAD_BIN}/pl_editor.app/Contents/MacOS/pl_editor
|
|
|
|
\"\"
|
2022-04-20 14:17:06 +00:00
|
|
|
\"${PYTHON_FRAMEWORK}\"
|
2014-10-26 19:54:48 +00:00
|
|
|
)
|
|
|
|
" COMPONENT Runtime
|
|
|
|
)
|
|
|
|
else()
|
2021-12-29 04:54:27 +00:00
|
|
|
if( MSVC )
|
|
|
|
target_sources( pl_editor_kiface PRIVATE ${CMAKE_SOURCE_DIR}/resources/msw/pl_editor-dll.rc )
|
|
|
|
endif()
|
|
|
|
|
2014-10-17 17:45:33 +00:00
|
|
|
install( TARGETS pl_editor
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
|
|
|
)
|
2014-10-26 19:54:48 +00:00
|
|
|
install( TARGETS pl_editor_kiface
|
2022-06-22 21:33:46 +00:00
|
|
|
DESTINATION ${KICAD_KIFACE}
|
2014-10-26 19:54:48 +00:00
|
|
|
COMPONENT binary
|
|
|
|
)
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
endif()
|
2021-07-15 03:31:56 +00:00
|
|
|
|
|
|
|
if( KICAD_WIN32_INSTALL_PDBS )
|
|
|
|
# Get the PDBs to copy over for MSVC
|
|
|
|
install(FILES $<TARGET_PDB_FILE:pl_editor> DESTINATION ${KICAD_BIN})
|
2022-06-22 21:33:46 +00:00
|
|
|
install(FILES $<TARGET_PDB_FILE:pl_editor_kiface> DESTINATION ${KICAD_KIFACE})
|
|
|
|
endif()
|