1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

introduced NativeFormat library (dummy at this moment)

This commit is contained in:
Nikolay Pultsin 2012-02-23 16:47:39 +01:00
parent bc66b99cdb
commit 4e58f8e1fe
3 changed files with 31 additions and 0 deletions

View file

@ -14,3 +14,10 @@ LOCAL_MODULE := LineBreak-v2
LOCAL_SRC_FILES := LineBreak/LineBreaker.cpp LineBreak/liblinebreak-2.0/linebreak.c LineBreak/liblinebreak-2.0/linebreakdata.c LineBreak/liblinebreak-2.0/linebreakdef.c LOCAL_SRC_FILES := LineBreak/LineBreaker.cpp LineBreak/liblinebreak-2.0/linebreak.c LineBreak/liblinebreak-2.0/linebreakdata.c LineBreak/liblinebreak-2.0/linebreakdef.c
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := NativeFormats-v1
LOCAL_SRC_FILES := NativeFormats/*.cpp
include $(BUILD_SHARED_LIBRARY)

View file

@ -0,0 +1,20 @@
/*
* Copyright (C) 2011-2012 Geometer Plus <contact@geometerplus.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#include <jni.h>

View file

@ -30,6 +30,10 @@ import org.geometerplus.fbreader.formats.pdb.MobipocketPlugin;
import org.geometerplus.fbreader.filetype.*; import org.geometerplus.fbreader.filetype.*;
public class PluginCollection { public class PluginCollection {
static {
System.loadLibrary("NativeFormats-v1");
}
private static PluginCollection ourInstance; private static PluginCollection ourInstance;
private final Map<FormatPlugin.Type,List<FormatPlugin>> myPlugins = private final Map<FormatPlugin.Type,List<FormatPlugin>> myPlugins =