Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 431ba3dffa | |||
| 0786a8eb0e | |||
| debda73068 | |||
| ce72177973 | |||
| 5214b9f925 | |||
| f37e89d956 | |||
| 89b084a6a7 | |||
| ee33c72915 | |||
| 59c316a1f0 | |||
| e9e295c3bc | |||
| 52aa0cac10 | |||
| 8e5381fda2 | |||
| 82f58bc24b | |||
| ef3883ed15 | |||
| 79d18bdd5d | |||
| 7468a16d63 | |||
| a5378e32b9 | |||
| 8ab8cb5335 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -73,3 +73,5 @@ CMakeLists.txt.user*
|
|||||||
*.exe
|
*.exe
|
||||||
|
|
||||||
build
|
build
|
||||||
|
lib/linux-x86_64
|
||||||
|
lib/*.zip
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ add_library(rktwebview SHARED
|
|||||||
json.cpp json.h
|
json.cpp json.h
|
||||||
utils.h
|
utils.h
|
||||||
utils.cpp
|
utils.cpp
|
||||||
|
memqueue.h memqueue.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(rktwebview_prg
|
add_executable(rktwebview_prg
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#define COMMAND_SET_OU_TOKEN 22
|
#define COMMAND_SET_OU_TOKEN 22
|
||||||
#define COMMAND_NEW_CONTEXT 23
|
#define COMMAND_NEW_CONTEXT 23
|
||||||
#define COMMAND_MESSAGE 24
|
#define COMMAND_MESSAGE 24
|
||||||
|
#define COMMAND_SET_ICON 25
|
||||||
|
|
||||||
class Command
|
class Command
|
||||||
{
|
{
|
||||||
|
|||||||
15
install-linux.sh → install/install-linux.sh
Normal file → Executable file
15
install-linux.sh → install/install-linux.sh
Normal file → Executable file
@@ -2,20 +2,21 @@
|
|||||||
#
|
#
|
||||||
ARCH=`uname -m`
|
ARCH=`uname -m`
|
||||||
|
|
||||||
LIB="lib/linux/$ARCH"
|
LIB="../lib/linux-$ARCH"
|
||||||
|
BUILD="../build/Release"
|
||||||
|
|
||||||
mkdir -p $LIB
|
mkdir -p $LIB
|
||||||
rm -f $LIB/*.so*
|
rm -f $LIB/*.so*
|
||||||
cp build/Release/*.so $LIB
|
cp $BUILD/*.so $LIB
|
||||||
cp build/Release/rktwebview_prg $LIB
|
cp $BUILD/rktwebview_prg $LIB
|
||||||
|
|
||||||
QT_PATH=`ldd build/Release/rktwebview_prg | grep Qt | awk '{print $3}' | head -1 | sed -e 's%[/]lib[/].*%%'`
|
QT_PATH=`ldd $BUILD/rktwebview_prg | grep Qt | awk '{print $3}' | head -1 | sed -e 's%[/]lib[/].*%%'`
|
||||||
echo "QT_PATH=$QT_PATH"
|
echo "QT_PATH=$QT_PATH"
|
||||||
|
|
||||||
QT_PLUGINS="$QT_PATH/plugins"
|
QT_PLUGINS="$QT_PATH/plugins"
|
||||||
PLUGINS="platforms position generic iconengines imageformats qmltooling tls xcbglintegrations"
|
PLUGINS="platforms position generic iconengines imageformats qmltooling tls xcbglintegrations"
|
||||||
|
|
||||||
EXTRA_LIBS_SO=`ldd build/Release/rktwebview_prg | grep Qt | awk '{ print $3 }'`
|
EXTRA_LIBS_SO=`ldd $BUILD/rktwebview_prg | grep Qt | awk '{ print $3 }'`
|
||||||
EXTRA_LIBS_PLATFORM_PLUGIN_XCB=`ldd $QT_PATH/plugins/platforms/libqxcb.so | grep Qt | awk '{print $3}'`
|
EXTRA_LIBS_PLATFORM_PLUGIN_XCB=`ldd $QT_PATH/plugins/platforms/libqxcb.so | grep Qt | awk '{print $3}'`
|
||||||
|
|
||||||
for pl in $PLUGINS
|
for pl in $PLUGINS
|
||||||
@@ -63,4 +64,8 @@ done
|
|||||||
|
|
||||||
cp $QT_PATH/libexec/QtWebEngineProcess $LIB
|
cp $QT_PATH/libexec/QtWebEngineProcess $LIB
|
||||||
|
|
||||||
|
(cd $LIB; cd ..; zip -9 -y -r linux-$ARCH.zip linux-$ARCH)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
6
json.cpp
6
json.cpp
@@ -92,7 +92,7 @@ const JSON &JSON::at(unsigned int index) const {
|
|||||||
|
|
||||||
int JSON::length() const {
|
int JSON::length() const {
|
||||||
if( Type == Class::Array )
|
if( Type == Class::Array )
|
||||||
return Internal.List->size();
|
return static_cast<int>(Internal.List->size());
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@@ -105,9 +105,9 @@ bool JSON::hasKey(const std::string &key) const {
|
|||||||
|
|
||||||
int JSON::size() const {
|
int JSON::size() const {
|
||||||
if( Type == Class::Object )
|
if( Type == Class::Object )
|
||||||
return Internal.Map->size();
|
return static_cast<int>(Internal.Map->size());
|
||||||
else if( Type == Class::Array )
|
else if( Type == Class::Array )
|
||||||
return Internal.List->size();
|
return static_cast<int>(Internal.List->size());
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,48 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"name": "qtbase",
|
|
||||||
"repositories": ["qtbase", "qtactiveqt", "qtimageformats"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtdeclarative",
|
|
||||||
"repositories": ["qtdeclarative"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtmultimedia",
|
|
||||||
"repositories": ["qtmultimedia"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtconnectivity",
|
|
||||||
"repositories": ["qtconnectivity"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtlocation",
|
|
||||||
"repositories": ["qtlocation"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtwebsockets",
|
|
||||||
"repositories": ["qtwebsockets"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtserialport",
|
|
||||||
"repositories": ["qtserialport"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qtwebengine",
|
|
||||||
"repositories": ["qtwebengine"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "designer",
|
|
||||||
"modules": ["Designer"]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "linguist"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "assistant"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "qt_help",
|
|
||||||
"modules": ["Help"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/windows-x86_64/rktwebview.lib
Normal file
BIN
lib/windows-x86_64/rktwebview.lib
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user