Add build option to use footprint library table.

This commit is contained in:
Wayne Stambaugh 2013-02-23 14:30:43 -05:00
parent cd664e8b9b
commit facde96ec2
5 changed files with 19 additions and 5 deletions

View File

@ -64,6 +64,8 @@ option(KICAD_SCRIPTING_WXPYTHON
# python binary file should be is exec path.
option(USE_FP_LIB_TABLE "Use the new footprint library table implementation. (default OFF)")
#Set version option (stable or testing)
if(KICAD_STABLE_VERSION AND KICAD_TESTING_VERSION )

View File

@ -85,4 +85,7 @@
#define LEGACY_BOARD_FILE_VERSION 1
#endif
/// Definition to compile with Pcbnew footprint library table implementation.
#cmakedefine USE_FP_LIB_TABLE
#endif // CONFIG_H_

View File

@ -142,3 +142,11 @@ PYTHON_SITE_PACKAGE_PATH (PATH)
When building KiCad with Python scripting enable, the Python site library path
is used by default. If you want to install the KiCad Python extension in a
different path, set this variable to the desired path.
USE_FP_LIB_TABLE (ON/OFF)
-------------------------
This option enable or disables building KiCad with the new footprint library
table support. The default setting (OFF) builds KiCad with the legacy library
path support. This option is experimental until the library table support is
ready for release.

View File

@ -81,7 +81,6 @@ EESchema
* Drag and drop between two EESchema windows.
Wayne:
E2) Finish adding replace capability to new Find dialog.
E3) Hook up perform last library search hot key to replace search libraries for
component support removed from find dialog.
E4) Change add component dialog search text control to combobox and add component

View File

@ -421,13 +421,15 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
wxMenu* configmenu = new wxMenu;
// Library
#if !defined( USE_FP_LIB_TABLE )
AddMenuItem( configmenu, ID_CONFIG_REQ,
_( "Li&brary" ), _( "Setting libraries, directories and others..." ),
KiBitmap( library_xpm ) );
#else
AddMenuItem( configmenu, ID_PCB_LIB_TABLE_EDIT,
_( "Li&brary Tables" ), _( "Setup footprint libraries" ),
KiBitmap( library_table_xpm ) );
#endif
// Colors and Visibility are also handled by the layers manager toolbar
AddMenuItem( configmenu, ID_MENU_PCB_SHOW_HIDE_LAYERS_MANAGER_DIALOG,