Kaydet (Commit) 9b3e00b3 authored tarafından Damjan Jovanovic's avatar Damjan Jovanovic

Port main/fileaccess to gbuild.

Patch by: me
üst a8ee4f31
...@@ -61,6 +61,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ ...@@ -61,6 +61,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
svgio \ svgio \
editeng \ editeng \
file \ file \
fileacc \
for \ for \
forui \ forui \
fwe \ fwe \
......
#**************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#**************************************************************
$(eval $(call gb_Library_Library,fileacc))
$(eval $(call gb_Library_set_componentfile,fileacc,fileaccess/util/fileacc))
$(eval $(call gb_Library_set_include,fileacc,\
$$(INCLUDE) \
-I$(SRCDIR)/fileaccess/inc \
))
$(eval $(call gb_Library_add_defs,fileacc,\
-DFILEACCESS_DLLIMPLEMENTATION \
))
$(eval $(call gb_Library_add_api,fileacc,\
offapi \
udkapi \
))
$(eval $(call gb_Library_add_linked_libs,fileacc,\
utl \
tl \
ucbhelper \
cppuhelper \
cppu \
sal \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_add_exception_objects,fileacc,\
fileaccess/source/FileAccess \
))
# vim: set noet sw=4 ts=4:
#**************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#**************************************************************
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
gb_PARTIALBUILD := T
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
#**************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#**************************************************************
$(eval $(call gb_Module_Module,fileaccess))
$(eval $(call gb_Module_add_targets,fileaccess,\
Library_fileacc \
))
# vim: set noet sw=4 ts=4:
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef FILEACCESS_DLLAPI_H
#define FILEACCESS_DLLAPI_H
#include "sal/config.h"
#include "sal/types.h"
#if defined FILEACCESS_DLLIMPLEMENTATION
#define FILEACCESS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define FILEACCESS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#endif
fa fileaccess : unotools rdbmaker tools ucbhelper LIBXSLT:libxslt NULL fa fileaccess : unotools rdbmaker tools ucbhelper LIBXSLT:libxslt NULL
fa fileaccess usr1 - all fa_mkout NULL fa fileaccess\prj nmake - all fa_prj NULL
fa fileaccess\source nmake - all fa_src NULL
..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*
..\%__SRC%\bin\*.rdb %_DEST%\rdb%_EXT%\*
..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%
..\%__SRC%\lib\*.dylib %_DEST%\lib%_EXT%\*
..\source\fileacc.xml %_DEST%\xml%_EXT%\fileacc.xml
..\%__SRC%\misc\fileacc.component %_DEST%\xml%_EXT%\fileacc.component
#**************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#**************************************************************
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
.IF "$(DEBUG)"!=""
DEBUG_ARGUMENT=DEBUG=$(DEBUG)
.ELIF "$(debug)"!=""
DEBUG_ARGUMENT=debug=$(debug)
.ELSE
DEBUG_ARGUMENT=
.ENDIF
all:
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) $(DEBUG_ARGUMENT) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include "fileaccess/dllapi.h"
#include <uno/mapping.hxx> #include <uno/mapping.hxx>
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
...@@ -904,13 +906,13 @@ Sequence< rtl::OUString > FileAccess_getSupportedServiceNames() ...@@ -904,13 +906,13 @@ Sequence< rtl::OUString > FileAccess_getSupportedServiceNames()
extern "C" extern "C"
{ {
//================================================================================================== //==================================================================================================
void SAL_CALL component_getImplementationEnvironment( FILEACCESS_DLLPUBLIC void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
{ {
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
} }
//================================================================================================== //==================================================================================================
void * SAL_CALL component_getFactory( FILEACCESS_DLLPUBLIC void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{ {
void * pRet = 0; void * pRet = 0;
......
...@@ -78,6 +78,7 @@ my_components = \ ...@@ -78,6 +78,7 @@ my_components = \
component/dbaccess/util/dba \ component/dbaccess/util/dba \
component/dbaccess/util/dbu \ component/dbaccess/util/dbu \
component/dbaccess/util/sdbt \ component/dbaccess/util/sdbt \
component/fileaccess/util/fileacc \
component/formula/util/for \ component/formula/util/for \
component/framework/util/fwk \ component/framework/util/fwk \
component/framework/util/fwl \ component/framework/util/fwl \
...@@ -129,7 +130,6 @@ my_components = \ ...@@ -129,7 +130,6 @@ my_components = \
dlgprov \ dlgprov \
embobj \ embobj \
evtatt \ evtatt \
fileacc \
filterconfig1 \ filterconfig1 \
flash \ flash \
flat \ flat \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment