diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-23 15:08:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-23 20:31:57 +0100 |
commit | c97d74b5f0608866bad3f7ae943811bdff4f7986 (patch) | |
tree | 1c7ec8a333f138e4d90a3c6a497d35f1da64c975 /scp2/source/base | |
parent | 95780ec73990f96dc16fc677c895d00fa1360008 (diff) |
fdo#45090: Changed postgresql-sdbc from bundled oxt to proper optional part.
Replaced --enable-ext-postgresql-sdbc with --disable-postgresql-sdbc.
Renamed postgresql-sdbc.uno{.ini,rc} to consistent postgresql-sdbc.ini
(which made the code a little easier).
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
(cherry picked from commit 3a7ae48b6f610899200ae2800706533f7c4c9f80)
Conflicts:
configure.in
connectivity/source/drivers/postgresql/makefile.mk
Diffstat (limited to 'scp2/source/base')
-rw-r--r-- | scp2/source/base/makefile.mk | 6 | ||||
-rw-r--r-- | scp2/source/base/postgresqlsdbc.scp | 75 | ||||
-rw-r--r-- | scp2/source/base/postgresqlsdbc.ulf | 36 |
3 files changed, 115 insertions, 2 deletions
diff --git a/scp2/source/base/makefile.mk b/scp2/source/base/makefile.mk index 3386005f5138..e3f3b1a72188 100644 --- a/scp2/source/base/makefile.mk +++ b/scp2/source/base/makefile.mk @@ -43,7 +43,8 @@ SCP_PRODUCT_TYPE=osl PARFILES= \ module_base.par \ - file_base.par + file_base.par \ + postgresqlsdbc.par .IF "$(GUI)"=="WNT" PARFILES += \ @@ -54,7 +55,8 @@ PARFILES += \ ULFFILES= \ module_base.ulf \ registryitem_base.ulf \ - folderitem_base.ulf + folderitem_base.ulf \ + postgresqlsdbc.ulf # --- File --------------------------------------------------------- .INCLUDE : target.mk diff --git a/scp2/source/base/postgresqlsdbc.scp b/scp2/source/base/postgresqlsdbc.scp new file mode 100644 index 000000000000..90e8631662b4 --- /dev/null +++ b/scp2/source/base/postgresqlsdbc.scp @@ -0,0 +1,75 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * [ Copyright (C) 2011 Red Hat, Inc., Stephan Bergmann <sbergman@redhat.com> + * (initial developer) ] + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#include "macros.inc" + +#if defined WITH_POSTGRESQL_SDBC + +Module gid_Module_Optional_PostgresqlSdbc + PackageInfo = "packinfo_office.txt"; + MOD_NAME_DESC(MODULE_OPTIONAL_POSTGRESQLSDBC); + ParentID = gid_Module_Prg_Base_Bin; + Files = (gid_File_Lib_PostgresqlSdbc, + gid_File_Lib_PostgresqlSdbcImpl, + gid_File_PostgresqlSdbc_Ini, + gid_File_PostgresqlSdbc_Rdb, + gid_File_PostgresqlSdbc_Xcd); + Minimal = NO; + Default = YES; + Styles = (); +End + +SPECIAL_COMPONENT_LIB_FILE(gid_File_Lib_PostgresqlSdbc, postgresql-sdbc.uno) + +SPECIAL_COMPONENT_LIB_FILE(gid_File_Lib_PostgresqlSdbcImpl, postgresql-sdbc-impl.uno) + +File gid_File_PostgresqlSdbc_Ini + TXT_FILE_BODY; + Dir = gid_Brand_Dir_Program; + Name = "postgresql-sdbc.ini"; + Styles = (PACKED); +End + +File gid_File_PostgresqlSdbc_Rdb + TXT_FILE_BODY; + Dir = gid_Brand_Dir_Program_Services; + Name = "postgresql-sdbc.rdb"; + Styles = (PACKED); +End + +File gid_File_PostgresqlSdbc_Xcd + TXT_FILE_BODY; + Dir = gid_Brand_Dir_Share_Registry; + Name = "postgresqlsdbc.xcd"; + Styles = (PACKED); +End + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scp2/source/base/postgresqlsdbc.ulf b/scp2/source/base/postgresqlsdbc.ulf new file mode 100644 index 000000000000..a96606262a2b --- /dev/null +++ b/scp2/source/base/postgresqlsdbc.ulf @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * [ Copyright (C) 2011 Red Hat, Inc., Stephan Bergmann <sbergman@redhat.com> + * (initial developer) ] + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +[STR_NAME_MODULE_OPTIONAL_EXTENSIONS_POSTGRESQLSDBC] +en-US = "PostgreSQL Connector" + +[STR_DESC_MODULE_OPTIONAL_EXTENSIONS_POSTGRESQLSDBC] +en-US = "PostgreSQL Connector" + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |