You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

826 lines
27 KiB

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
16 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
16 years ago
15 years ago
16 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
* 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.
12 years ago
  1. if( UNIX AND NOT APPLE )
  2. # Setting this ON slows down linking and is a advanced (=hidden) developer option for
  3. # linux, not a user option.
  4. option( PCBNEW_LINK_MAPS
  5. "Developer: create linker map files for pcbnew binaries, not typical for Debug builds"
  6. )
  7. mark_as_advanced( PCBNEW_LINK_MAPS )
  8. endif()
  9. add_definitions( -DPCBNEW )
  10. add_subdirectory(router)
  11. # psnrouter depends on make_lexer outputs in common (bug # 1285878 )
  12. add_dependencies( pnsrouter pcbcommon )
  13. if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
  14. file( MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swig )
  15. # Infrequently needed headers go at end of search paths, append to INC_AFTER
  16. set( INC_AFTER ${INC_AFTER} swig )
  17. set( INC_AFTER ${INC_AFTER} ../common/swig )
  18. #message( STATUS "pcbnew INC_AFTER:${INC_AFTER}" )
  19. endif()
  20. if( BUILD_GITHUB_PLUGIN )
  21. set( GITHUB_3DLIBRARIES_WIZARD
  22. dialogs/wizard_3DShape_Libs_downloader_base.cpp
  23. dialogs/wizard_3DShape_Libs_downloader.cpp
  24. )
  25. endif()
  26. include_directories( BEFORE ${INC_BEFORE} )
  27. include_directories(
  28. ./dialogs
  29. ./autorouter
  30. ../3d-viewer
  31. ../common
  32. ../polygon
  33. ../common/dialogs
  34. ./exporters
  35. ../lib_dxf
  36. ./import_dxf
  37. ../utils/idftools
  38. ${GLM_INCLUDE_DIR}
  39. ${INC_AFTER}
  40. )
  41. set( PCBNEW_DIALOGS
  42. dialogs/dialog_block_options_base.cpp
  43. dialogs/dialog_block_options.cpp
  44. dialogs/dialog_cleaning_options_base.cpp
  45. dialogs/dialog_cleaning_options.cpp
  46. dialogs/dialog_copper_zones.cpp
  47. dialogs/dialog_copper_zones_base.cpp
  48. dialogs/dialog_create_array.cpp
  49. dialogs/dialog_create_array_base.cpp
  50. dialogs/dialog_design_rules.cpp
  51. dialogs/dialog_design_rules_base.cpp
  52. dialogs/dialog_dimension_editor_base.cpp
  53. dialogs/dialog_display_options.cpp
  54. dialogs/dialog_display_options_base.cpp
  55. dialogs/dialog_drc_base.cpp
  56. dialogs/dialog_drc.cpp
  57. dialogs/dialog_edit_module_for_BoardEditor.cpp
  58. dialogs/dialog_edit_module_for_BoardEditor_base.cpp
  59. dialogs/dialog_edit_module_for_Modedit_base.cpp
  60. dialogs/dialog_edit_module_for_Modedit.cpp
  61. dialogs/dialog_edit_module_text.cpp
  62. dialogs/dialog_edit_module_text_base.cpp
  63. dialogs/dialog_enum_pads.cpp
  64. dialogs/dialog_enum_pads_base.cpp
  65. dialogs/dialog_exchange_modules_base.cpp
  66. dialogs/dialog_exchange_modules.cpp
  67. dialogs/dialog_export_idf.cpp
  68. dialogs/dialog_export_idf_base.cpp
  69. dialogs/dialog_export_vrml_base.cpp
  70. dialogs/dialog_export_vrml.cpp
  71. dialogs/dialog_export_step_base.cpp
  72. dialogs/dialog_export_step.cpp
  73. dialogs/dialog_find_base.cpp
  74. dialogs/dialog_find.cpp
  75. dialogs/dialog_fp_lib_table_base.cpp
  76. dialogs/dialog_fp_lib_table.cpp
  77. dialogs/dialog_fp_plugin_options_base.cpp
  78. dialogs/dialog_fp_plugin_options.cpp
  79. dialogs/dialog_freeroute_exchange.cpp
  80. dialogs/dialog_freeroute_exchange_base.cpp
  81. dialogs/dialog_gencad_export_options.cpp
  82. dialogs/dialog_gendrill.cpp
  83. dialogs/dialog_gendrill_base.cpp
  84. dialogs/dialog_gen_module_position_file_base.cpp
  85. dialogs/dialog_general_options.cpp
  86. dialogs/dialog_general_options_BoardEditor_base.cpp
  87. dialogs/dialog_get_footprint_by_name_base.cpp
  88. dialogs/dialog_global_edit_tracks_and_vias.cpp
  89. dialogs/dialog_global_edit_tracks_and_vias_base.cpp
  90. dialogs/dialog_global_modules_fields_edition.cpp
  91. dialogs/dialog_global_modules_fields_edition_base.cpp
  92. dialogs/dialog_global_pads_edition_base.cpp
  93. dialogs/dialog_global_pads_edition.cpp
  94. dialogs/dialog_graphic_items_options.cpp
  95. dialogs/dialog_graphic_items_options_base.cpp
  96. dialogs/dialog_graphic_item_properties.cpp
  97. dialogs/dialog_graphic_item_properties_base.cpp
  98. dialogs/dialog_graphic_item_properties_for_Modedit.cpp
  99. dialogs/dialog_global_deletion.cpp
  100. dialogs/dialog_global_deletion_base.cpp
  101. dialogs/dialog_keepout_area_properties.cpp
  102. dialogs/dialog_keepout_area_properties_base.cpp
  103. dialogs/dialog_layer_selection_base.cpp
  104. dialogs/dialog_layers_setup.cpp
  105. dialogs/dialog_layers_setup_base.cpp
  106. dialogs/dialog_modedit_display_options.cpp
  107. dialogs/dialog_modedit_options.cpp
  108. dialogs/dialog_modedit_options_base.cpp
  109. dialogs/dialog_netlist.cpp
  110. dialogs/dialog_netlist_fbp.cpp
  111. dialogs/dialog_pcb_text_properties.cpp
  112. dialogs/dialog_pcb_text_properties_base.cpp
  113. dialogs/dialog_pns_settings.cpp
  114. dialogs/dialog_pns_settings_base.cpp
  115. dialogs/dialog_move_exact.cpp
  116. dialogs/dialog_move_exact_base.cpp
  117. dialogs/dialog_pns_diff_pair_dimensions.cpp
  118. dialogs/dialog_pns_diff_pair_dimensions_base.cpp
  119. dialogs/dialog_pns_length_tuning_settings.cpp
  120. dialogs/dialog_pns_length_tuning_settings_base.cpp
  121. dialogs/dialog_non_copper_zones_properties.cpp
  122. dialogs/dialog_non_copper_zones_properties_base.cpp
  123. dialogs/dialog_pad_properties.cpp
  124. dialogs/dialog_pad_properties_base.cpp
  125. dialogs/dialog_pad_basicshapes_properties.cpp
  126. dialogs/dialog_plot_base.cpp
  127. dialogs/dialog_plot.cpp
  128. dialogs/dialog_position_relative.cpp
  129. dialogs/dialog_position_relative_base.cpp
  130. dialogs/dialog_print_for_modedit.cpp
  131. dialogs/dialog_print_for_modedit_base.cpp
  132. dialogs/dialog_print_using_printer.cpp
  133. dialogs/dialog_print_using_printer_base.cpp
  134. dialogs/dialog_mask_clearance.cpp
  135. dialogs/dialog_mask_clearance_base.cpp
  136. dialogs/dialog_SVG_print.cpp
  137. dialogs/dialog_SVG_print_base.cpp
  138. dialogs/dialog_select_pretty_lib.cpp
  139. dialogs/dialog_select_net_from_list_base.cpp
  140. dialogs/dialog_select_net_from_list.cpp
  141. dialogs/dialog_select_pretty_lib_base.cpp
  142. dialogs/dialog_set_grid.cpp
  143. dialogs/dialog_set_grid_base.cpp
  144. dialogs/dialog_target_properties_base.cpp
  145. dialogs/dialog_track_via_properties.cpp
  146. dialogs/dialog_track_via_properties_base.cpp
  147. dialogs/dialog_track_via_size.cpp
  148. dialogs/dialog_track_via_size_base.cpp
  149. dialogs/dialog_update_pcb_base.cpp
  150. dialogs/dialog_update_pcb.cpp
  151. footprint_wizard.cpp
  152. footprint_wizard_frame.cpp
  153. dialogs/dialog_footprint_wizard_list_base.cpp
  154. dialogs/dialog_footprint_wizard_list.cpp
  155. dialogs/wizard_add_fplib_base.cpp
  156. dialogs/wizard_add_fplib.cpp
  157. ${GITHUB_3DLIBRARIES_WIZARD}
  158. )
  159. set( PCBNEW_IMPORT_DXF
  160. import_dxf/dialog_dxf_import_base.cpp
  161. import_dxf/dialog_dxf_import.cpp
  162. import_dxf/dxf2brd_items.cpp
  163. )
  164. set( PCBNEW_EXPORTERS
  165. exporters/export_d356.cpp
  166. exporters/export_gencad.cpp
  167. exporters/export_idf.cpp
  168. exporters/export_vrml.cpp
  169. exporters/gen_drill_report_files.cpp
  170. exporters/gen_modules_placefile.cpp
  171. exporters/gendrill_Excellon_writer.cpp
  172. exporters/gendrill_file_writer_base.cpp
  173. exporters/gendrill_gerber_writer.cpp
  174. exporters/gerber_jobfile_writer.cpp
  175. )
  176. set( PCBNEW_MICROWAVE_SRCS
  177. microwave/microwave_inductor.cpp
  178. )
  179. set( PCBNEW_CLASS_SRCS
  180. autorouter/rect_placement/rect_placement.cpp
  181. autorouter/spread_footprints.cpp
  182. board_commit.cpp
  183. tool_modview.cpp
  184. modview_frame.cpp
  185. pcbframe.cpp
  186. pcb_base_edit_frame.cpp
  187. append_board_to_current.cpp
  188. array_creator.cpp
  189. attribut.cpp
  190. board_items_to_polygon_shape_transform.cpp
  191. board_netlist_updater.cpp
  192. block.cpp
  193. block_module_editor.cpp
  194. build_BOM_from_board.cpp
  195. class_pcb_layer_widget.cpp
  196. class_pcb_layer_box_selector.cpp
  197. clean.cpp
  198. connect.cpp
  199. controle.cpp
  200. dimension.cpp
  201. cross-probing.cpp
  202. deltrack.cpp
  203. ${PCBNEW_DIALOGS}
  204. ${PCBNEW_IMPORT_DXF}
  205. ${PCBNEW_EXPORTERS}
  206. dragsegm.cpp
  207. drc.cpp
  208. drc_clearance_test_functions.cpp
  209. drc_marker_functions.cpp
  210. edgemod.cpp
  211. edit.cpp
  212. editedge.cpp
  213. editmod.cpp
  214. editrack.cpp
  215. editrack-part2.cpp
  216. edit_pcb_text.cpp
  217. edit_track_width.cpp
  218. edtxtmod.cpp
  219. event_handlers_tracks_vias_sizes.cpp
  220. files.cpp
  221. footprint_info_impl.cpp
  222. globaleditpad.cpp
  223. highlight.cpp
  224. hotkeys.cpp
  225. hotkeys_board_editor.cpp
  226. hotkeys_module_editor.cpp
  227. initpcb.cpp
  228. layer_widget.cpp
  229. librairi.cpp
  230. loadcmp.cpp
  231. magnetic_tracks_functions.cpp
  232. menubar_modedit.cpp
  233. menubar_pcbframe.cpp
  234. minimun_spanning_tree.cpp
  235. modedit.cpp
  236. modedit_onclick.cpp
  237. modeditoptions.cpp
  238. moduleframe.cpp
  239. modules.cpp
  240. move-drag_pads.cpp
  241. move_or_drag_track.cpp
  242. microwave.cpp
  243. muwave_command.cpp
  244. netlist.cpp
  245. onleftclick.cpp
  246. onrightclick.cpp
  247. pad_edition_functions.cpp
  248. pcbnew_config.cpp
  249. pcbplot.cpp
  250. pcb_draw_panel_gal.cpp
  251. pcb_general_settings.cpp
  252. plot_board_layers.cpp
  253. plot_brditems_plotter.cpp
  254. print_board_functions.cpp
  255. printout_controler.cpp
  256. ratsnest.cpp
  257. specctra.cpp
  258. specctra_export.cpp
  259. specctra_keywords.cpp
  260. specctra_import.cpp
  261. swap_layers.cpp
  262. target_edit.cpp
  263. tool_modedit.cpp
  264. tool_onrightclick.cpp
  265. tool_pcb.cpp
  266. toolbars_update_user_interface.cpp
  267. tracepcb.cpp
  268. tr_modif.cpp
  269. undo_redo.cpp
  270. zones_convert_brd_items_to_polygons_with_Boost.cpp
  271. zones_convert_to_polygons_aux_functions.cpp
  272. zones_by_polygon.cpp
  273. zones_by_polygon_fill_functions.cpp
  274. zone_filling_algorithm.cpp
  275. zones_functions_for_undo_redo.cpp
  276. zones_polygons_insulated_copper_islands.cpp
  277. zones_test_and_combine_areas.cpp
  278. class_footprint_wizard.cpp
  279. class_action_plugin.cpp
  280. tools/pcb_tool.cpp
  281. tools/selection_tool.cpp
  282. tools/pcb_selection_conditions.cpp
  283. tools/pcb_bright_box.cpp
  284. tools/edit_points.cpp
  285. tools/edit_constraints.cpp
  286. tools/point_editor.cpp
  287. tools/drawing_tool.cpp
  288. tools/edit_tool.cpp
  289. tools/position_relative_tool.cpp
  290. tools/pcbnew_control.cpp
  291. tools/pcb_editor_control.cpp
  292. tools/microwave_tool.cpp
  293. tools/module_editor_tools.cpp
  294. tools/placement_tool.cpp
  295. tools/pcb_actions.cpp
  296. tools/grid_helper.cpp
  297. tools/pad_tool.cpp
  298. tools/picker_tool.cpp
  299. tools/zone_create_helper.cpp
  300. tools/tools_common.cpp
  301. tools/tool_event_utils.cpp
  302. tools/size_menu.cpp
  303. footprint_preview_panel.cpp
  304. )
  305. set( PCBNEW_SRCS
  306. ${PCBNEW_MICROWAVE_SRCS}
  307. ${PCBNEW_CLASS_SRCS}
  308. ${PCBNEW_DIALOGS}
  309. )
  310. # extra sources from common
  311. set( PCBNEW_COMMON_SRCS
  312. ../common/dialogs/dialog_page_settings.cpp
  313. ../common/base_units.cpp
  314. )
  315. set( PCBNEW_SCRIPTING_DIALOGS
  316. dialogs/dialog_scripting_base.cpp
  317. dialogs/dialog_scripting.cpp
  318. )
  319. set( PCBNEW_SCRIPTING_PYTHON_HELPERS
  320. ../common/swig/wx_python_helpers.cpp
  321. swig/python_scripting.cpp
  322. swig/pcbnew_scripting_helpers.cpp
  323. swig/pcbnew_footprint_wizards.cpp
  324. swig/pcbnew_action_plugins.cpp
  325. )
  326. # auto-generate specctra_lexer.h and specctra_keywords.cpp
  327. make_lexer(
  328. ${CMAKE_CURRENT_SOURCE_DIR}/specctra.keywords
  329. ${CMAKE_CURRENT_SOURCE_DIR}/specctra_lexer.h
  330. ${CMAKE_CURRENT_SOURCE_DIR}/specctra_keywords.cpp
  331. DSN
  332. # Pass header file with dependency on *_lexer.h as extra_arg
  333. specctra.h
  334. )
  335. add_custom_target(
  336. specctra_lexer_source_files ALL
  337. DEPENDS
  338. ${CMAKE_CURRENT_SOURCE_DIR}/specctra_lexer.h
  339. ${CMAKE_CURRENT_SOURCE_DIR}/specctra_keywords.cpp
  340. )
  341. if( COMPILER_SUPPORTS_WSHADOW )
  342. # .cpp files are compiled with extra ${WSHADOW_FLAGS}, but not .cxx files
  343. set_source_files_properties(
  344. ${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
  345. PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS}
  346. )
  347. endif()
  348. if( KICAD_SCRIPTING )
  349. set( PCBNEW_SCRIPTING_SRCS
  350. ${PCBNEW_SCRIPTING_DIALOGS}
  351. pcbnew_wrap.cxx
  352. ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
  353. )
  354. # Swig generated files do not use the override specifier, therefore
  355. # disable suggest-override warnings
  356. if( COMPILER_SUPPORTS_WSUGGEST_OVERRIDE )
  357. set_source_files_properties( pcbnew_wrap.cxx pcbnewPYTHON_wrap.cxx
  358. PROPERTIES COMPILE_FLAGS -Wno-suggest-override
  359. )
  360. endif()
  361. endif()
  362. if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
  363. set( SWIG_FLAGS
  364. -I${CMAKE_CURRENT_SOURCE_DIR}
  365. -I${CMAKE_CURRENT_SOURCE_DIR}/../include
  366. -I${CMAKE_CURRENT_SOURCE_DIR}/../scripting
  367. -I${CMAKE_CURRENT_SOURCE_DIR}/../common/swig
  368. -I${WXPYTHON_SWIG_DIR}
  369. )
  370. if( DEBUG )
  371. set( SWIG_FLAGS ${SWIG_FLAGS} -DDEBUG )
  372. endif()
  373. # collect CFLAGS , and pass them to swig later
  374. get_directory_property( DirDefs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS )
  375. foreach( d ${DirDefs} )
  376. set( SWIG_FLAGS ${SWIG_FLAGS} -D${d} )
  377. endforeach()
  378. endif()
  379. if( KICAD_SCRIPTING ) # Generate pcbnew.py and pcbnew_wrap.cxx using swig
  380. # We deliberately do not use the CMake support for swig here,
  381. # i.e. swig_add_module()) because we want full control.
  382. set( SWIG_OPTS -python -c++ -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )
  383. if( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/doxygen-xml )
  384. set( SWIG_OPTS ${SWIG_OPTS} -DENABLE_DOCSTRINGS_FROM_DOXYGEN )
  385. set( SWIG_OPTS ${SWIG_OPTS} -I${CMAKE_CURRENT_BINARY_DIR}/docstrings )
  386. endif()
  387. add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx
  388. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
  389. DEPENDS pcbcommon
  390. DEPENDS plotcontroller.h
  391. DEPENDS exporters/gendrill_Excellon_writer.h
  392. DEPENDS swig/pcbnew.i
  393. DEPENDS swig/board.i
  394. DEPENDS swig/board_connected_item.i
  395. DEPENDS swig/board_design_settings.i
  396. DEPENDS swig/board_item.i
  397. DEPENDS swig/board_item_container.i
  398. DEPENDS swig/dimension.i
  399. DEPENDS swig/drawsegment.i
  400. DEPENDS swig/edge_mod.i
  401. DEPENDS swig/marker_pcb.i
  402. DEPENDS swig/mire.i
  403. DEPENDS swig/module.i
  404. DEPENDS swig/netclass.i
  405. DEPENDS swig/netinfo.i
  406. DEPENDS swig/pad.i
  407. DEPENDS swig/pcb_text.i
  408. DEPENDS swig/plugins.i
  409. DEPENDS swig/text_mod.i
  410. DEPENDS swig/track.i
  411. DEPENDS swig/units.i
  412. DEPENDS swig/zone.i
  413. DEPENDS swig/zone_settings.i
  414. DEPENDS ../common/swig/dlist.i
  415. DEPENDS ../common/swig/kicad.i
  416. DEPENDS ../common/swig/wx.i
  417. DEPENDS ../common/swig/ki_exception.i
  418. DEPENDS ../scripting/kicadplugins.i
  419. COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/docstrings
  420. # Make docstrings.i available if it doesn't exist
  421. COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/docstrings/docstrings.i
  422. COMMAND ${SWIG_EXECUTABLE}
  423. ${SWIG_OPTS} -o ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx swig/pcbnew.i
  424. COMMAND ${PYTHON_EXECUTABLE}
  425. ${CMAKE_SOURCE_DIR}/scripting/build_tools/fix_swig_imports.py
  426. ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
  427. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  428. )
  429. endif()
  430. if( BUILD_GITHUB_PLUGIN )
  431. set( GITHUB_PLUGIN_LIBRARIES github_plugin )
  432. endif()
  433. if( UNIX AND NOT APPLE )
  434. list( APPEND PCBNEW_EXTRA_LIBS rt )
  435. endif()
  436. ###
  437. # Doxygen python documentation
  438. ###
  439. if( DOXYGEN_FOUND )
  440. if( KICAD_SCRIPTING )
  441. # create XML files from doxygen parsing
  442. add_custom_target( doxygen-python-xml
  443. ${CMAKE_COMMAND} -E remove_directory doxygen-python-xml
  444. COMMAND SOURCES_DIR=${CMAKE_SOURCE_DIR} ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_xml
  445. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  446. DEPENDS Doxyfile_xml
  447. COMMENT "building doxygen docs into directory doxygen-python/html"
  448. )
  449. # create .i files from XML doxygen parsing, docstrings.i will include all of them
  450. add_custom_target( xml-to-docstrings
  451. COMMAND ${CMAKE_COMMAND} -E remove_directory docstrings
  452. COMMAND ${CMAKE_COMMAND} -E make_directory docstrings
  453. COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripting/build_tools/extract_docstrings.py pcbnew.py doxygen-xml/xml docstrings
  454. COMMAND ${CMAKE_COMMAND} -E remove pcbnew.py # force removal so it will be recreated later with the new docstrings
  455. COMMENT "building docstring files"
  456. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  457. DEPENDS pcbnew.py
  458. DEPENDS doxygen-python-xml
  459. )
  460. # create doxygen-python html
  461. add_custom_target( doxygen-python
  462. ${CMAKE_COMMAND} -E remove_directory doxygen-python
  463. COMMAND PYTHON_SOURCES_TO_DOC=${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile_python
  464. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  465. DEPENDS Doxyfile_python
  466. DEPENDS xml-to-docstrings
  467. DEPENDS pcbnew.py
  468. COMMENT "building doxygen docs into directory doxygen-python/html"
  469. )
  470. endif()
  471. endif()
  472. if( MINGW )
  473. # PCBNEW_RESOURCES variable is set by the macro.
  474. mingw_resource_compiler( pcbnew )
  475. else()
  476. set( PCBNEW_RESOURCES pcbnew.rc )
  477. endif()
  478. if( APPLE )
  479. # setup bundle
  480. set( PCBNEW_RESOURCES pcbnew.icns pcbnew_doc.icns )
  481. set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/pcbnew.icns" PROPERTIES
  482. MACOSX_PACKAGE_LOCATION Resources
  483. )
  484. set_source_files_properties( "${CMAKE_CURRENT_SOURCE_DIR}/pcbnew_doc.icns" PROPERTIES
  485. MACOSX_PACKAGE_LOCATION Resources
  486. )
  487. set( MACOSX_BUNDLE_ICON_FILE pcbnew.icns )
  488. set( MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-pcb.kicad )
  489. set( MACOSX_BUNDLE_NAME pcbnew )
  490. endif()
  491. # Create a C++ compilable string initializer containing html text into a *.h file:
  492. add_custom_command(
  493. OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help_html.h
  494. COMMAND ${CMAKE_COMMAND}
  495. -DinputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help.html
  496. -DoutputFile=${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help_html.h
  497. -P ${CMAKE_MODULE_PATH}/Html2C.cmake
  498. DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help.html
  499. COMMENT "creating ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help_html.h
  500. from ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help.html"
  501. )
  502. set_source_files_properties( dialogs/dialog_freeroute_exchange.cpp PROPERTIES
  503. OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/dialog_freeroute_exchange_help_html.h
  504. )
  505. add_subdirectory( pcad2kicadpcb_plugin )
  506. if( BUILD_GITHUB_PLUGIN )
  507. add_subdirectory( github )
  508. add_dependencies( github_plugin lib-dependencies )
  509. # github_plugin depends on make_lexer outputs in common
  510. add_dependencies( github_plugin pcbcommon )
  511. endif()
  512. # a very small program launcher for pcbnew_kiface
  513. add_executable( pcbnew WIN32 MACOSX_BUNDLE
  514. ../common/single_top.cpp
  515. ${PCBNEW_RESOURCES}
  516. )
  517. set_source_files_properties( ../common/single_top.cpp pcbnew.cpp PROPERTIES
  518. COMPILE_DEFINITIONS "TOP_FRAME=FRAME_PCB;PGM_DATA_FILE_EXT=\"kicad_pcb\";BUILD_KIWAY_DLL"
  519. )
  520. target_link_libraries( pcbnew
  521. #singletop # replaces common, giving us restrictive control and link warnings.
  522. # There's way too much crap coming in from common yet.
  523. common
  524. bitmaps
  525. gal
  526. ${wxWidgets_LIBRARIES}
  527. )
  528. if( PCBNEW_LINK_MAPS )
  529. set_target_properties( pcbnew PROPERTIES
  530. LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pcbnew.map" )
  531. endif()
  532. # the main pcbnew program, in DSO form.
  533. add_library( pcbnew_kiface MODULE
  534. pcbnew.cpp
  535. ${PCBNEW_SRCS}
  536. ${PCBNEW_COMMON_SRCS}
  537. ${PCBNEW_SCRIPTING_SRCS}
  538. )
  539. set_target_properties( pcbnew_kiface PROPERTIES
  540. # Decorate OUTPUT_NAME with PREFIX and SUFFIX, creating something like
  541. # _pcbnew.so, _pcbnew.dll, or _pcbnew.kiface
  542. OUTPUT_NAME pcbnew
  543. PREFIX ${KIFACE_PREFIX}
  544. SUFFIX ${KIFACE_SUFFIX}
  545. )
  546. if ( KICAD_BUILD_TESTS )
  547. if ( UNIX )
  548. add_custom_command(TARGET pcbnew_kiface POST_BUILD
  549. COMMAND ln -sf _pcbnew.kiface lib_pcbnew_kiface.so )
  550. else()
  551. add_custom_command(TARGET pcbnew_kiface POST_BUILD
  552. COMMAND copy _pcbnew.kiface lib_pcbnew_kiface.dll )
  553. endif()
  554. endif ()
  555. if( ${OPENMP_FOUND} )
  556. set_target_properties( pcbnew_kiface PROPERTIES
  557. COMPILE_FLAGS ${OpenMP_CXX_FLAGS}
  558. )
  559. endif()
  560. target_link_libraries( pcbnew_kiface
  561. 3d-viewer
  562. pcbcommon
  563. pnsrouter
  564. pcad2kicadpcb
  565. common
  566. polygon
  567. bitmaps
  568. gal
  569. lib_dxf
  570. idf3
  571. ${wxWidgets_LIBRARIES}
  572. ${GITHUB_PLUGIN_LIBRARIES}
  573. ${GDI_PLUS_LIBRARIES}
  574. ${PYTHON_LIBRARIES}
  575. ${Boost_LIBRARIES} # must follow GITHUB
  576. ${PCBNEW_EXTRA_LIBS} # -lrt must follow Boost
  577. ${OPENMP_LIBRARIES}
  578. )
  579. set_source_files_properties( pcbnew.cpp PROPERTIES
  580. # The KIFACE is in pcbnew.cpp, export it:
  581. COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"
  582. )
  583. if( PCBNEW_LINK_MAPS )
  584. set_target_properties( pcbnew_kiface PROPERTIES
  585. LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=_pcbnew.kiface.map"
  586. )
  587. set_target_properties( pcbnew PROPERTIES
  588. LINK_FLAGS "${TO_LINKER},-cref ${TO_LINKER},-Map=pcbnew.map"
  589. )
  590. endif()
  591. # if building pcbnew, then also build pcbnew_kiface if out of date.
  592. add_dependencies( pcbnew pcbnew_kiface )
  593. # add dependency to specctra_lexer_source_files, to force
  594. # generation of autogenerated file
  595. add_dependencies( pcbnew_kiface specctra_lexer_source_files )
  596. # these 2 binaries are a matched set, keep them together:
  597. if( APPLE )
  598. set_target_properties( pcbnew PROPERTIES
  599. MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
  600. )
  601. # puts binaries into the *.app bundle while linking
  602. set_target_properties( pcbnew_kiface PROPERTIES
  603. LIBRARY_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_KIFACE_DIR}
  604. )
  605. # put individual bundle outside of main bundle as a first step
  606. # will be pulled into the main bundle when creating main bundle
  607. install( TARGETS pcbnew
  608. DESTINATION ${KICAD_BIN}
  609. COMPONENT binary
  610. )
  611. install( CODE "
  612. # override default embedded path settings
  613. ${OSX_BUNDLE_OVERRIDE_PATHS}
  614. # do all the work
  615. include( BundleUtilities )
  616. fixup_bundle( ${KICAD_BIN}/pcbnew.app/Contents/MacOS/pcbnew
  617. \"\"
  618. \"\"
  619. )
  620. " COMPONENT Runtime
  621. )
  622. else()
  623. install( TARGETS pcbnew
  624. DESTINATION ${KICAD_BIN}
  625. COMPONENT binary
  626. )
  627. install( TARGETS pcbnew_kiface
  628. DESTINATION ${KICAD_BIN}
  629. COMPONENT binary
  630. )
  631. endif()
  632. add_dependencies( pcbnew lib-dependencies )
  633. if( KICAD_SCRIPTING )
  634. if( NOT APPLE )
  635. install( FILES ${CMAKE_BINARY_DIR}/pcbnew/pcbnew.py DESTINATION ${PYTHON_DEST} )
  636. else()
  637. # put into bundle at build time, it is relocated at install
  638. add_custom_target( ScriptingPcbnewPyCopy ALL
  639. COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/pcbnew/pcbnew.py" "${PYTHON_DEST}/"
  640. DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pcbnew.py
  641. COMMENT "Copying pcbnew.py into ${PYTHON_DEST}"
  642. )
  643. add_dependencies( ScriptingPcbnewPyCopy ScriptingWxpythonCopy )
  644. endif()
  645. # python plugins
  646. install( DIRECTORY ${PROJECT_SOURCE_DIR}/pcbnew/python/plugins/
  647. DESTINATION ${KICAD_DATA}/scripting/plugins
  648. FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
  649. )
  650. # python shell
  651. install( DIRECTORY ${PROJECT_SOURCE_DIR}/pcbnew/python/kicad_pyshell/
  652. DESTINATION ${KICAD_DATA}/scripting/kicad_pyshell
  653. FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
  654. )
  655. endif()
  656. if( KICAD_SCRIPTING_MODULES )
  657. # 1) KICAD_SCRIPTING enables python inside _pcbnew.kiface.
  658. # 2) KICAD_SCRIPTING_MODULES enables python from the OS command line for pcbnew.
  659. # When python is running within _pcbnew.kiface (case 1 above) it uses said
  660. # kiface for the native part of the pcbnew python module. This is a kind of
  661. # circular dependency that works well. When running python from
  662. # the command line (case 2 above) then python needs a native portion of the pcbnew
  663. # python module also, and this is _pcbnew.{so,pyd}. It turns out that the
  664. # kiface file is built adequately to serve the needs of 2) for now if it is
  665. # merely renamed. This is phase 1 of a 2 step plan.
  666. # In phase 2 we will use the _pcbnew.kiface file without renaming, by doctoring
  667. # what the python portion of the pcbnew python module wants to load when run
  668. # from the command line, case 2 above.
  669. # Here is built the _pcbnew.{so,pyd} which is the native part of the pcbnew Python library
  670. # when Python is used from the command line.
  671. if( MINGW )
  672. install( FILES ${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.pyd DESTINATION ${PYTHON_DEST} )
  673. set( PYMOD_EXT "pyd" )
  674. elseif( APPLE )
  675. # put everything into bundle at build time, it is relocated at install
  676. add_custom_target( ScriptingModulesPcbnewSoCopy ALL
  677. COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.so" "${PYTHON_DEST}/"
  678. DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.so
  679. COMMENT "Copying _pcbnew.so into ${PYTHON_DEST}"
  680. )
  681. add_dependencies( ScriptingModulesPcbnewSoCopy ScriptingWxpythonCopy )
  682. set( PYMOD_EXT "so" )
  683. else() # only linux remains among supported platforms
  684. install( FILES ${CMAKE_BINARY_DIR}/pcbnew/_pcbnew.so DESTINATION ${PYTHON_DEST} )
  685. set( PYMOD_EXT "so" )
  686. endif()
  687. if( APPLE )
  688. add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
  689. DEPENDS pcbnew_kiface
  690. COMMAND ${CMAKE_COMMAND} -E copy ${OSX_BUNDLE_BUILD_KIFACE_DIR}/_pcbnew.kiface _pcbnew.${PYMOD_EXT}
  691. COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use."
  692. )
  693. add_custom_target(
  694. pcbnew_python_module ALL
  695. DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
  696. )
  697. else()
  698. # For phase 1, copy _pcbnew.kiface to the python module.
  699. add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
  700. DEPENDS pcbnew_kiface
  701. COMMAND ${CMAKE_COMMAND} -E copy _pcbnew.kiface _pcbnew.${PYMOD_EXT}
  702. COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use."
  703. )
  704. add_custom_target(
  705. pcbnew_python_module ALL
  706. DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
  707. )
  708. endif()
  709. endif()
  710. if( APPLE )
  711. if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES )
  712. # find wx-X.Y-osx_cocoa path below PYTHON_SITE_PACKAGE_PATH
  713. file( GLOB WXPYTHON_DIR RELATIVE ${PYTHON_SITE_PACKAGE_PATH} ${PYTHON_SITE_PACKAGE_PATH}/wx-?.?-osx_cocoa )
  714. if( NOT WXPYTHON_DIR )
  715. message( FATAL_ERROR "Could not find 'wx-?.?-osx_cocoa' in '${PYTHON_SITE_PACKAGE_PATH}'" )
  716. endif()
  717. # copy contents
  718. add_custom_target( ScriptingWxpythonCopy ALL
  719. COMMAND ${CMAKE_COMMAND} -E copy_directory "${PYTHON_SITE_PACKAGE_PATH}/${WXPYTHON_DIR}" "${PYTHON_DEST}/${WXPYTHON_DIR}"
  720. COMMAND ${CMAKE_COMMAND} -E copy "${PYTHON_SITE_PACKAGE_PATH}/wxversion.py" "${PYTHON_DEST}"
  721. COMMENT "Copying wxPython into ${PYTHON_DEST}"
  722. )
  723. endif()
  724. endif()