Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
35355756
Commit
35355756
authored
7 years ago
by
Konstantinos Sideris
Browse files
Options
Downloads
Patches
Plain Diff
Build lmdb on appveyor
parent
7ad45d8d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+27
-6
27 additions, 6 deletions
CMakeLists.txt
appveyor.yml
+1
-2
1 addition, 2 deletions
appveyor.yml
src/RoomList.cc
+5
-4
5 additions, 4 deletions
src/RoomList.cc
with
33 additions
and
12 deletions
CMakeLists.txt
+
27
−
6
View file @
35355756
cmake_minimum_required
(
VERSION 3.1
)
project
(
nheko CXX
)
project
(
nheko
C
CXX
)
option
(
BUILD_TESTS
"Build all tests"
OFF
)
option
(
APPVEYOR_BUILD
"Build on appveyor"
OFF
)
#
# LMDB
#
find_path
(
LMDB_INCLUDE_DIR NAMES lmdb.h PATHS
"$ENV{LMDB_DIR}/include"
)
find_library
(
LMDB_LIBRARY NAMES lmdb PATHS
"$ENV{LMDB_DIR}/lib"
)
if
(
APPVEYOR_BUILD
)
set
(
LMDB_VERSION
"LMDB_0.9.21"
)
set
(
NTDLIB
"C:/WINDDK/7600.16385.1/lib/win7/amd64/ntdll.lib"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARY
)
execute_process
(
COMMAND git clone --depth=1 --branch
${
LMDB_VERSION
}
https://github.com/LMDB/lmdb
)
set
(
LMDB_INCLUDE_DIR
${
CMAKE_SOURCE_DIR
}
/lmdb/libraries/liblmdb
)
add_library
(
lmdb
${
CMAKE_SOURCE_DIR
}
/lmdb/libraries/liblmdb/lmdb.h
${
CMAKE_SOURCE_DIR
}
/lmdb/libraries/liblmdb/mdb.c
${
CMAKE_SOURCE_DIR
}
/lmdb/libraries/liblmdb/midl.h
${
CMAKE_SOURCE_DIR
}
/lmdb/libraries/liblmdb/midl.c
)
else
()
find_path
(
LMDB_INCLUDE_DIR NAMES lmdb.h PATHS
"$ENV{LMDB_DIR}/include"
)
find_library
(
LMDB_LIBRARY NAMES lmdb PATHS
"$ENV{LMDB_DIR}/lib"
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARY
)
endif
()
if
(
NOT EXISTS
"
${
CMAKE_SOURCE_DIR
}
/libs/lmdbxx/.git"
)
message
(
WARNING
"The git submodules are not available."
)
...
...
@@ -298,7 +314,12 @@ else()
#
# Build the executable.
#
if
(
APPVEYOR_BUILD
)
set
(
NHEKO_LIBS matrix_events Qt5::Widgets Qt5::Network lmdb
)
else
()
set
(
NHEKO_LIBS matrix_events Qt5::Widgets Qt5::Network
${
LMDB_LIBRARY
}
)
endif
()
set
(
NHEKO_DEPS
${
OS_BUNDLE
}
${
SRC_FILES
}
${
UI_HEADERS
}
${
MOC_HEADERS
}
${
QRC
}
${
LANG_QRC
}
${
QM_SRC
}
)
if
(
APPLE
)
...
...
@@ -306,7 +327,7 @@ else()
target_link_libraries
(
nheko
${
NHEKO_LIBS
}
Qt5::MacExtras
)
elseif
(
WIN32
)
add_executable
(
nheko
${
ICON_FILE
}
${
NHEKO_DEPS
}
)
target_link_libraries
(
nheko
${
NHEKO_LIBS
}
Qt5::WinMain
)
target_link_libraries
(
nheko
${
NTDLIB
}
${
NHEKO_LIBS
}
Qt5::WinMain
)
else
()
add_executable
(
nheko
${
NHEKO_DEPS
}
)
target_link_libraries
(
nheko
${
NHEKO_LIBS
}
)
...
...
This diff is collapsed.
Click to expand it.
appveyor.yml
+
1
−
2
View file @
35355756
...
...
@@ -19,9 +19,8 @@ install:
-
cinst nsis --version 3.0 -y -installArgs /D=C:\nsis
build_script
:
-
cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild
-
cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild
-DAPPVEYOR_BUILD=ON
-
cmake --build build --config Release
-
ls -lh build
after_build
:
-
mkdir NhekoRelease
...
...
This diff is collapsed.
Click to expand it.
src/RoomList.cc
+
5
−
4
View file @
35355756
...
...
@@ -147,7 +147,8 @@ RoomList::setInitialRooms(const QMap<QString, QSharedPointer<RoomSettings>> &set
new
RoomInfoListItem
(
settings
[
room_id
],
state
,
room_id
,
scrollArea_
);
connect
(
room_item
,
&
RoomInfoListItem
::
clicked
,
this
,
&
RoomList
::
highlightSelectedRoom
);
connect
(
room_item
,
&
RoomInfoListItem
::
leaveRoom
,
this
,
&
RoomList
::
openLeaveRoomDialog
);
connect
(
room_item
,
&
RoomInfoListItem
::
leaveRoom
,
this
,
&
RoomList
::
openLeaveRoomDialog
);
rooms_
.
insert
(
room_id
,
QSharedPointer
<
RoomInfoListItem
>
(
room_item
));
...
...
@@ -168,9 +169,9 @@ void
RoomList
::
openLeaveRoomDialog
(
const
QString
&
room_id
)
{
leaveRoomDialog_
=
new
LeaveRoomDialog
(
this
);
connect
(
leaveRoomDialog_
,
&
LeaveRoomDialog
::
closing
,
this
,
[
=
](
bool
leaving
)
{
closeLeaveRoomDialog
(
leaving
,
room_id
);
});
connect
(
leaveRoomDialog_
,
&
LeaveRoomDialog
::
closing
,
this
,
[
=
](
bool
leaving
)
{
close
LeaveRoomDialog
(
leaving
,
room_id
);
});
leaveRoomModal
=
new
OverlayModal
(
MainWindow
::
instance
(),
leaveRoomDialog_
);
leaveRoomModal
->
setDuration
(
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment