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.

828 lines
27 KiB

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