2014-04-03 11:55:02 +00:00
|
|
|
# the map generation creates on Windows/gcc a lot of useless warnings
|
|
|
|
# so disable it on windows
|
|
|
|
if( WIN32 AND NOT CMAKE_CROSSCOMPILING )
|
|
|
|
set( MAKE_LINK_MAPS false )
|
|
|
|
else()
|
|
|
|
set( MAKE_LINK_MAPS true )
|
|
|
|
endif()
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
add_definitions( -DEESCHEMA )
|
2012-01-23 04:33:36 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
|
|
|
|
include_directories( BEFORE ${INC_BEFORE} )
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(
|
|
|
|
./dialogs
|
|
|
|
../common
|
|
|
|
../common/dialogs
|
|
|
|
${INC_AFTER}
|
|
|
|
)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
|
|
|
|
set( EESCHEMA_DLGS
|
2010-12-02 21:41:56 +00:00
|
|
|
dialogs/dialog_color_config.cpp
|
2013-06-07 20:56:55 +00:00
|
|
|
dialogs/dialog_annotate.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_annotate_base.cpp
|
2013-06-14 14:59:52 +00:00
|
|
|
dialogs/dialog_bom.cpp
|
|
|
|
dialogs/dialog_bom_base.cpp
|
|
|
|
dialogs/dialog_bom_cfg_keywords.cpp
|
2014-02-14 08:05:04 +00:00
|
|
|
dialogs/dialog_choose_component.cpp
|
|
|
|
dialogs/dialog_choose_component_base.cpp
|
2010-11-17 21:47:27 +00:00
|
|
|
dialogs/dialog_lib_edit_text.cpp
|
|
|
|
dialogs/dialog_lib_edit_text_base.cpp
|
2010-11-18 21:10:52 +00:00
|
|
|
dialogs/dialog_edit_component_in_lib.cpp
|
|
|
|
dialogs/dialog_edit_component_in_lib_base.cpp
|
|
|
|
dialogs/dialog_edit_component_in_schematic_fbp.cpp
|
|
|
|
dialogs/dialog_edit_component_in_schematic.cpp
|
|
|
|
dialogs/dialog_edit_label.cpp
|
|
|
|
dialogs/dialog_edit_label_base.cpp
|
|
|
|
dialogs/dialog_edit_libentry_fields_in_lib.cpp
|
|
|
|
dialogs/dialog_edit_libentry_fields_in_lib_base.cpp
|
2012-02-22 14:04:48 +00:00
|
|
|
dialogs/dialog_edit_one_field.cpp
|
2010-11-19 16:28:46 +00:00
|
|
|
dialogs/dialog_eeschema_config.cpp
|
|
|
|
dialogs/dialog_eeschema_config_fbp.cpp
|
|
|
|
dialogs/dialog_eeschema_options_base.cpp
|
|
|
|
dialogs/dialog_eeschema_options.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_erc.cpp
|
|
|
|
dialogs/dialog_erc_base.cpp
|
2010-11-19 16:28:46 +00:00
|
|
|
dialogs/dialog_libedit_dimensions.cpp
|
|
|
|
dialogs/dialog_libedit_dimensions_base.cpp
|
2010-11-17 21:47:27 +00:00
|
|
|
dialogs/dialog_lib_edit_draw_item.cpp
|
|
|
|
dialogs/dialog_lib_edit_draw_item_base.cpp
|
2010-11-17 18:41:20 +00:00
|
|
|
dialogs/dialog_lib_edit_pin.cpp
|
|
|
|
dialogs/dialog_lib_edit_pin_base.cpp
|
2010-11-20 21:59:00 +00:00
|
|
|
dialogs/dialog_lib_new_component.cpp
|
|
|
|
dialogs/dialog_lib_new_component_base.cpp
|
2012-12-16 11:36:18 +00:00
|
|
|
dialogs/dialog_netlist.cpp
|
2012-08-21 10:45:54 +00:00
|
|
|
dialogs/dialog_netlist_base.cpp
|
2012-09-17 17:42:27 +00:00
|
|
|
dialogs/dialog_plot_schematic_base.cpp
|
|
|
|
dialogs/dialog_plot_schematic.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
dialogs/dialog_print_using_printer_base.cpp
|
|
|
|
dialogs/dialog_print_using_printer.cpp
|
2010-11-20 21:59:00 +00:00
|
|
|
dialogs/dialog_sch_edit_sheet_pin.cpp
|
|
|
|
dialogs/dialog_sch_edit_sheet_pin_base.cpp
|
|
|
|
dialogs/dialog_sch_sheet_props.cpp
|
|
|
|
dialogs/dialog_sch_sheet_props_base.cpp
|
2010-10-26 20:25:48 +00:00
|
|
|
dialogs/dialog_schematic_find.cpp
|
|
|
|
dialogs/dialog_schematic_find_base.cpp
|
2012-08-21 10:45:54 +00:00
|
|
|
)
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
set( EESCHEMA_SRCS
|
2012-08-21 10:45:54 +00:00
|
|
|
annotate.cpp
|
|
|
|
backanno.cpp
|
|
|
|
block.cpp
|
|
|
|
block_libedit.cpp
|
|
|
|
busentry.cpp
|
|
|
|
bus-wire-junction.cpp
|
|
|
|
class_drc_erc_item.cpp
|
|
|
|
class_libentry.cpp
|
|
|
|
class_library.cpp
|
|
|
|
class_netlist_object.cpp
|
|
|
|
cmp_library_keywords.cpp
|
|
|
|
cmp_library_lexer.cpp
|
|
|
|
component_references_lister.cpp
|
|
|
|
controle.cpp
|
|
|
|
cross-probing.cpp
|
|
|
|
database.cpp
|
|
|
|
${EESCHEMA_DLGS}
|
2008-01-30 09:42:19 +00:00
|
|
|
edit_component_in_schematic.cpp
|
2011-08-31 14:59:20 +00:00
|
|
|
edit_bitmap.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
edit_label.cpp
|
|
|
|
eelibs_read_libraryfiles.cpp
|
|
|
|
eeredraw.cpp
|
|
|
|
eeschema.cpp
|
2009-10-27 13:48:24 +00:00
|
|
|
eeschema_config.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
erc.cpp
|
2010-01-09 08:50:30 +00:00
|
|
|
events_called_functions_for_edit.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
files-io.cpp
|
|
|
|
find.cpp
|
|
|
|
getpart.cpp
|
2014-02-14 08:05:04 +00:00
|
|
|
component_tree_search_container.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
hierarch.cpp
|
|
|
|
hotkeys.cpp
|
|
|
|
libarch.cpp
|
|
|
|
libedit.cpp
|
2010-02-16 16:21:52 +00:00
|
|
|
libeditframe.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libedit_onleftclick.cpp
|
|
|
|
libedit_onrightclick.cpp
|
2010-03-18 20:35:29 +00:00
|
|
|
libedit_plot_component.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libedit_undo_redo.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_arc.cpp
|
|
|
|
lib_bezier.cpp
|
|
|
|
lib_circle.cpp
|
2011-04-27 19:44:32 +00:00
|
|
|
lib_collectors.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_draw_item.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
lib_export.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
lib_field.cpp
|
2010-10-22 12:11:52 +00:00
|
|
|
lib_pin.cpp
|
2010-10-08 20:40:57 +00:00
|
|
|
lib_polyline.cpp
|
|
|
|
lib_rectangle.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
lib_text.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
libfield.cpp
|
|
|
|
load_one_schematic_file.cpp
|
|
|
|
menubar.cpp
|
2010-03-18 20:35:29 +00:00
|
|
|
menubar_libedit.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
netform.cpp
|
|
|
|
netlist.cpp
|
|
|
|
onleftclick.cpp
|
|
|
|
onrightclick.cpp
|
2009-07-27 14:32:40 +00:00
|
|
|
operations_on_items_lists.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
pinedit.cpp
|
2012-09-17 17:42:27 +00:00
|
|
|
plot_schematic_DXF.cpp
|
|
|
|
plot_schematic_HPGL.cpp
|
|
|
|
plot_schematic_PS.cpp
|
|
|
|
plot_schematic_PDF.cpp
|
|
|
|
plot_schematic_SVG.cpp
|
2012-01-09 17:24:01 +00:00
|
|
|
sch_base_frame.cpp
|
2011-08-31 14:59:20 +00:00
|
|
|
sch_bitmap.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_bus_entry.cpp
|
2011-03-25 19:16:05 +00:00
|
|
|
sch_collectors.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_component.cpp
|
|
|
|
sch_field.cpp
|
2011-01-12 21:47:54 +00:00
|
|
|
sch_junction.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_line.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_marker.cpp
|
2010-12-21 15:13:09 +00:00
|
|
|
sch_no_connect.cpp
|
2010-11-11 21:10:27 +00:00
|
|
|
sch_screen.cpp
|
|
|
|
sch_sheet.cpp
|
|
|
|
sch_sheet_path.cpp
|
|
|
|
sch_sheet_pin.cpp
|
|
|
|
sch_text.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
schedit.cpp
|
|
|
|
schematic_undo_redo.cpp
|
|
|
|
schframe.cpp
|
|
|
|
selpart.cpp
|
|
|
|
sheet.cpp
|
|
|
|
sheetlab.cpp
|
|
|
|
symbdraw.cpp
|
|
|
|
symbedit.cpp
|
2010-06-17 16:30:10 +00:00
|
|
|
template_fieldnames_keywords.cpp
|
|
|
|
template_fieldnames.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
tool_lib.cpp
|
|
|
|
tool_sch.cpp
|
|
|
|
tool_viewlib.cpp
|
2010-10-20 20:24:26 +00:00
|
|
|
transform.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
viewlib_frame.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
viewlibs.cpp
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
# This file does not look common.
|
|
|
|
# Keep it after template_fieldnames_keywords.cpp
|
2009-04-05 20:49:15 +00:00
|
|
|
../common/sch_item_struct.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
set( EESCHEMA_COMMON_SRCS
|
2012-01-23 04:33:36 +00:00
|
|
|
../common/dialogs/dialog_page_settings.cpp
|
2012-01-23 04:53:21 +00:00
|
|
|
../common/base_screen.cpp
|
2012-04-12 21:31:31 +00:00
|
|
|
../common/eda_text.cpp
|
|
|
|
../common/class_page_info.cpp
|
2012-04-13 18:51:24 +00:00
|
|
|
../common/base_units.cpp
|
2012-01-23 04:33:36 +00:00
|
|
|
)
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
if( MINGW )
|
|
|
|
# EESCHEMA_RESOURCES variable is set by the macro.
|
|
|
|
mingw_resource_compiler( eeschema )
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if( APPLE )
|
|
|
|
set( EESCHEMA_RESOURCES eeschema.icns eeschema_doc.icns )
|
|
|
|
|
|
|
|
set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/eeschema.icns" PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources
|
|
|
|
)
|
2008-09-07 19:32:07 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
set( MACOSX_BUNDLE_ICON_FILE eeschema.icns )
|
|
|
|
set( MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.eeschema )
|
|
|
|
endif()
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2010-08-09 16:56:00 +00:00
|
|
|
|
|
|
|
# auto-generate cmp_library_lexer.h and cmp_library_keywords.cpp for the component
|
|
|
|
# library format.
|
2010-12-27 16:49:39 +00:00
|
|
|
make_lexer(
|
* 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
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library.keywords
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmp_library_keywords.cpp
|
|
|
|
TLIB_T
|
|
|
|
)
|
2010-06-17 16:30:10 +00:00
|
|
|
|
2010-12-27 16:49:39 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames.keywords
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/template_fieldnames_keywords.cpp
|
|
|
|
TFIELD_T
|
2013-05-31 21:22:34 +00:00
|
|
|
|
|
|
|
# Pass header file with dependency on *_lexer.h as extra_arg
|
|
|
|
template_fieldnames.h
|
2010-04-06 14:09:52 +00:00
|
|
|
)
|
|
|
|
|
2013-06-14 14:59:52 +00:00
|
|
|
make_lexer(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_cfg.keywords
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_cfg_lexer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_cfg_keywords.cpp
|
|
|
|
T_BOMCFG_T
|
|
|
|
|
|
|
|
# Pass header file with dependency on *_lexer.h as extra_arg
|
2014-02-03 15:10:37 +00:00
|
|
|
dialogs/dialog_bom_cfg.h
|
2013-06-14 14:59:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Create a C++ compilable string initializer containing html text into a *.h file:
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_html.h
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help.html
|
|
|
|
-DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_html.h
|
|
|
|
-P ${CMAKE_MODULE_PATH}/Html2C.cmake
|
|
|
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help.html
|
|
|
|
COMMENT "creating ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_html.h
|
|
|
|
from ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help.html"
|
|
|
|
)
|
|
|
|
|
|
|
|
set_source_files_properties( dialogs/dialog_bom.cpp
|
|
|
|
PROPERTIES
|
|
|
|
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_bom_help_html.h
|
|
|
|
)
|
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-02-03 19:26:18 +00:00
|
|
|
if( USE_KIWAY_DLLS )
|
2014-02-03 15:10:37 +00:00
|
|
|
add_executable( eeschema WIN32 MACOSX_BUNDLE
|
|
|
|
../common/single_top.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
|
|
|
../common/pgm_base.cpp
|
2014-03-22 08:28:39 +00:00
|
|
|
${EESCHEMA_RESOURCES}
|
* 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_source_files_properties( ../common/single_top.cpp PROPERTIES
|
2014-04-19 18:47:20 +00:00
|
|
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_SCH;PGM_DATA_FILE_EXT=\"sch\";BUILD_KIWAY_DLL"
|
2014-02-03 15:10:37 +00:00
|
|
|
)
|
|
|
|
target_link_libraries( eeschema
|
* 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
|
|
|
#singletop # replaces common, giving us restrictive control and link warnings.
|
|
|
|
# There's way too much crap coming in from common yet.
|
2014-02-03 15:10:37 +00:00
|
|
|
common
|
* 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
|
|
|
bitmaps
|
2014-02-03 15:10:37 +00:00
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
# the DSO (KIFACE) housing the main eeschema code:
|
2014-02-03 19:26:18 +00:00
|
|
|
add_library( eeschema_kiface MODULE
|
2014-02-03 15:10:37 +00:00
|
|
|
${EESCHEMA_SRCS}
|
|
|
|
${EESCHEMA_COMMON_SRCS}
|
2014-03-22 08:28:39 +00:00
|
|
|
# ${EESCHEMA_RESOURCES}
|
2014-02-03 15:10: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
|
|
|
target_link_libraries( eeschema_kiface
|
|
|
|
common
|
|
|
|
bitmaps
|
|
|
|
polygon
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${GDI_PLUS_LIBRARIES}
|
|
|
|
)
|
2014-02-03 19:26:18 +00:00
|
|
|
set_target_properties( eeschema_kiface PROPERTIES
|
|
|
|
# Decorate OUTPUT_NAME with PREFIX and SUFFIX, creating something like
|
|
|
|
# _eeschema.so, _eeschema.dll, or _eeschema.kiface
|
2014-02-03 15:10:37 +00:00
|
|
|
OUTPUT_NAME eeschema
|
2014-02-03 19:26:18 +00:00
|
|
|
PREFIX ${KIFACE_PREFIX}
|
|
|
|
SUFFIX ${KIFACE_SUFFIX}
|
2014-02-03 15:10: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
|
|
|
# The KIFACE is in eeschema.cpp, export it:
|
|
|
|
set_source_files_properties( eeschema.cpp PROPERTIES
|
|
|
|
COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"
|
|
|
|
)
|
|
|
|
|
|
|
|
# if building eeschema, then also build eeschema_kiface if out of date.
|
|
|
|
add_dependencies( eeschema eeschema_kiface )
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
if( APPLE )
|
2014-02-03 19:26:18 +00:00
|
|
|
set_target_properties( eeschema_kiface PROPERTIES
|
2014-02-03 15:10:37 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if( MAKE_LINK_MAPS )
|
* 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
|
|
|
# generate link map with cross reference
|
2014-02-03 19:26:18 +00:00
|
|
|
set_target_properties( eeschema_kiface PROPERTIES
|
* 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
|
|
|
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=${KIFACE_PREFIX}eeschema${KIFACE_SUFFIX}.map"
|
|
|
|
)
|
|
|
|
set_target_properties( eeschema PROPERTIES
|
|
|
|
LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=eeschema.map"
|
2014-02-03 15:10:37 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
* 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
|
|
|
# these 2 binaries are a matched set, keep them together:
|
|
|
|
install( TARGETS eeschema
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
2014-02-03 15:10:37 +00:00
|
|
|
)
|
2014-02-03 19:26:18 +00:00
|
|
|
install( TARGETS eeschema_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
|
|
|
# actual filename subject to change at milestone C)
|
|
|
|
# modular-kicad blueprint.
|
2008-09-14 11:46:58 +00:00
|
|
|
DESTINATION ${KICAD_BIN}
|
2014-02-03 15:10:37 +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
|
|
|
|
2014-03-22 11:35:33 +00:00
|
|
|
if( APPLE )
|
|
|
|
# copies kiface into the bundle
|
|
|
|
add_custom_target( _eeschema_kiface_copy ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/eeschema/_eeschema.kiface "${CMAKE_BINARY_DIR}/eeschema/eeschema.app/Contents/MacOS/"
|
|
|
|
DEPENDS eeschema_kiface
|
|
|
|
COMMENT "Copying kiface into eeschema"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
else()
|
|
|
|
add_executable( eeschema WIN32 MACOSX_BUNDLE
|
* 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
|
|
|
../common/single_top.cpp
|
2014-02-03 15:10:37 +00:00
|
|
|
${EESCHEMA_SRCS}
|
|
|
|
${EESCHEMA_COMMON_SRCS}
|
|
|
|
${EESCHEMA_RESOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries( eeschema
|
|
|
|
common
|
* 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
|
2014-02-03 15:10:37 +00:00
|
|
|
bitmaps
|
|
|
|
polygon
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${GDI_PLUS_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
|
|
|
set_source_files_properties( ../common/single_top.cpp PROPERTIES
|
2014-04-19 18:47:20 +00:00
|
|
|
COMPILE_DEFINITIONS "TOP_FRAME=FRAME_SCH;PGM_DATA_FILE_EXT=\"sch\";BUILD_KIWAY_DLL"
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if( APPLE )
|
|
|
|
set_target_properties( eeschema PROPERTIES
|
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install( TARGETS eeschema
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
2014-02-03 15:10:37 +00:00
|
|
|
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2014-02-03 15:10:37 +00:00
|
|
|
add_subdirectory( plugins )
|