diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp index 5c6c9dc5a9..fa4a13dc76 100644 --- a/pcbnew/dialogs/panel_fp_lib_table.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table.cpp @@ -300,7 +300,9 @@ PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE( DIALOG_EDIT_LIBRARY_TABLES* aParent, wxArrayString choices; choices.Add( IO_MGR::ShowType( IO_MGR::KICAD_SEXP ) ); +#if defined(BUILD_GITHUB_PLUGIN) choices.Add( IO_MGR::ShowType( IO_MGR::GITHUB ) ); +#endif choices.Add( IO_MGR::ShowType( IO_MGR::LEGACY ) ); choices.Add( IO_MGR::ShowType( IO_MGR::EAGLE ) ); choices.Add( IO_MGR::ShowType( IO_MGR::GEDA_PCB ) ); diff --git a/pcbnew/io_mgr.cpp b/pcbnew/io_mgr.cpp index 1a215a34b5..f46dc638f3 100644 --- a/pcbnew/io_mgr.cpp +++ b/pcbnew/io_mgr.cpp @@ -155,6 +155,7 @@ IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath } else { +#if defined(BUILD_GITHUB_PLUGIN) // There is no extension for a remote repo, so test the server name. wxURI uri( aLibPath ); @@ -162,6 +163,7 @@ IO_MGR::PCB_FILE_T IO_MGR::GuessPluginTypeFromLibPath( const wxString& aLibPath { ret = GITHUB; } +#endif } return ret; diff --git a/pcbnew/io_mgr.h b/pcbnew/io_mgr.h index 976e02f31f..d899a7c3b0 100644 --- a/pcbnew/io_mgr.h +++ b/pcbnew/io_mgr.h @@ -56,8 +56,11 @@ public: EAGLE, PCAD, GEDA_PCB, ///< Geda PCB file formats. - GITHUB, ///< Read only http://github.com repo holding pretty footprints + //N.B. This needs to be commented out to ensure compile-type errors +#if defined(BUILD_GITHUB_PLUGIN) + GITHUB, ///< Read only http://github.com repo holding pretty footprints +#endif // add your type here. // ALTIUM,