-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from chewitt/lang
lang: align language names with transifex
- Loading branch information
Showing
18 changed files
with
189 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,173 +1,173 @@ | ||
################################################################################ | ||
# This file is part of LibreELEC - http://www.libreelec.tv | ||
# Copyright (C) 2013-2015 RasPlex project | ||
# Copyright (C) 2016 Team LibreELEC | ||
# | ||
# LibreELEC 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. | ||
# | ||
# LibreELEC 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 LibreELEC. If not, see <http://www.gnu.org/licenses/>. | ||
################################################################################ | ||
|
||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2013-03-14T18:13:26 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui network widgets | ||
|
||
TARGET = LibreELEC.USB-SD.Creator | ||
TEMPLATE = app | ||
|
||
SOURCES += main.cpp \ | ||
creator.cpp \ | ||
diskwriter.cpp \ | ||
jsonparser.cpp \ | ||
movingaverage.cpp \ | ||
downloadmanager.cpp \ | ||
translator.cpp | ||
|
||
HEADERS += creator.h \ | ||
diskwriter.h \ | ||
jsonparser.h \ | ||
movingaverage.h \ | ||
downloadmanager.h \ | ||
deviceenumerator.h \ | ||
translator.h | ||
|
||
MOC_DIR = .generated_files | ||
OBJECTS_DIR = .generated_files | ||
|
||
# hide the full g++ command line and print only filename | ||
CONFIG += silent | ||
|
||
TRANSLATIONS += lang/lang-ast_ES.ts \ | ||
lang/lang-bg_BG.ts \ | ||
lang/lang-cs_CZ.ts \ | ||
lang/lang-da_DK.ts \ | ||
lang/lang-de_DE.ts \ | ||
lang/lang-el_GR.ts \ | ||
lang/lang-en_GB.ts \ | ||
lang/lang-es_ES.ts \ | ||
lang/lang-fa_IR.ts \ | ||
lang/lang-fi_FI.ts \ | ||
lang/lang-fr_FR.ts \ | ||
lang/lang-he_IL.ts \ | ||
lang/lang-hr_HR.ts \ | ||
lang/lang-hu_HU.ts \ | ||
lang/lang-it_IT.ts \ | ||
lang/lang-lt_LT.ts \ | ||
lang/lang-nl_NL.ts \ | ||
lang/lang-no_NO.ts \ | ||
lang/lang-pl_PL.ts \ | ||
lang/lang-pt_BR.ts \ | ||
lang/lang-pt_PT.ts \ | ||
lang/lang-ru_RU.ts \ | ||
lang/lang-sk_SK.ts \ | ||
lang/lang-sl_SI.ts \ | ||
lang/lang-sr_RS.ts \ | ||
lang/lang-sv_SE.ts \ | ||
lang/lang-tr_TR.ts \ | ||
lang/lang-uk_UA.ts \ | ||
lang/lang-zh_CN.ts | ||
|
||
static { # everything below takes effect with CONFIG += static | ||
CONFIG += static | ||
CONFIG += staticlib # this is needed if you create a static library, not a static executable | ||
message("~~~ static build ~~~") # this is for information, that the static build is done | ||
} | ||
|
||
win32 { | ||
# add suffix | ||
TARGET = LibreELEC.USB-SD.Creator.Win32 | ||
|
||
SOURCES += diskwriter_windows.cpp \ | ||
deviceenumerator_windows.cpp | ||
|
||
HEADERS += diskwriter_windows.h \ | ||
deviceenumerator_windows.h \ | ||
privileges.h | ||
|
||
CONFIG += rtti | ||
QMAKE_LFLAGS = -static -static-libgcc | ||
RC_FILE = winapp.rc | ||
|
||
# remove possible other optimization flags | ||
QMAKE_CXXFLAGS_RELEASE -= -O | ||
QMAKE_CXXFLAGS_RELEASE -= -O1 | ||
QMAKE_CXXFLAGS_RELEASE -= -O2 | ||
QMAKE_CXXFLAGS_RELEASE -= -O3 | ||
# Optimize for size | ||
QMAKE_CXXFLAGS_RELEASE += -Os | ||
|
||
QMAKE_CXXFLAGS = -Ic:\Qt\Qt5.6.1\Tools\mingw492_32\i686-w64-mingw32\include | ||
# write image to local file named 'dummy_image_file' | ||
# instead to real device (for testing) | ||
#DEFINES += WINDOWS_DUMMY_WRITE | ||
} | ||
|
||
unix { | ||
# remove possible other optimization flags | ||
QMAKE_CFLAGS_RELEASE -= -O | ||
QMAKE_CFLAGS_RELEASE -= -O1 | ||
QMAKE_CFLAGS_RELEASE -= -O2 | ||
QMAKE_CFLAGS_RELEASE -= -O3 | ||
# Optimize for size | ||
QMAKE_CFLAGS_RELEASE += -Os | ||
|
||
QMAKE_CXXFLAGS += -fPIC | ||
|
||
contains(QT_ARCH, i386) { | ||
# link with i386 library manualy unpacked | ||
QMAKE_LFLAGS += -L$(HOME)/Qt5.6.1/ubuntu-i386-lib/usr/lib/i386-linux-gnu | ||
QMAKE_RPATHLINKDIR += $$(HOME)/Qt5.6.1/ubuntu-i386-lib/lib/i386-linux-gnu | ||
} | ||
|
||
SOURCES += diskwriter_unix.cpp \ | ||
deviceenumerator_unix.cpp \ | ||
privileges_unix.cpp | ||
|
||
HEADERS += diskwriter_unix.h \ | ||
deviceenumerator_unix.h \ | ||
privileges_unix.h | ||
} | ||
|
||
macx { | ||
# use spaces on macOS | ||
TARGET = "LibreELEC USB-SD Creator" | ||
|
||
QMAKE_INFO_PLIST = dmg_osx/template.app/Contents/Info.plist | ||
#QT_CONFIG -= no-pkg-config | ||
#CONFIG += link_pkgconfig | ||
# same thing | ||
#QMAKE_POST_LINK += install_name_tool -add_rpath @executable_path/../Frameworks \"LibreELEC USB-SD Creator.app/Contents/MacOS/LibreELEC USB-SD Creator\" | ||
} | ||
|
||
linux* { | ||
# manually add suffix 32/64 | ||
TARGET = LibreELEC.USB-SD.Creator.Linux-bit.bin | ||
|
||
QMAKE_CXXFLAGS += -std=c++11 | ||
|
||
LIBS += -lblkid | ||
} | ||
|
||
FORMS += creator.ui | ||
|
||
LIBS += -lz | ||
|
||
OTHER_FILES += | ||
|
||
RESOURCES += resources.qrc | ||
|
||
CONFIG(debug, debug|release): DEFINES += ALWAYS_DEBUG_OUTPUT | ||
################################################################################ | ||
# This file is part of LibreELEC - http://www.libreelec.tv | ||
# Copyright (C) 2013-2015 RasPlex project | ||
# Copyright (C) 2016 Team LibreELEC | ||
# | ||
# LibreELEC 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. | ||
# | ||
# LibreELEC 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 LibreELEC. If not, see <http://www.gnu.org/licenses/>. | ||
################################################################################ | ||
|
||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2013-03-14T18:13:26 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui network widgets | ||
|
||
TARGET = LibreELEC.USB-SD.Creator | ||
TEMPLATE = app | ||
|
||
SOURCES += main.cpp \ | ||
creator.cpp \ | ||
diskwriter.cpp \ | ||
jsonparser.cpp \ | ||
movingaverage.cpp \ | ||
downloadmanager.cpp \ | ||
translator.cpp | ||
|
||
HEADERS += creator.h \ | ||
diskwriter.h \ | ||
jsonparser.h \ | ||
movingaverage.h \ | ||
downloadmanager.h \ | ||
deviceenumerator.h \ | ||
translator.h | ||
|
||
MOC_DIR = .generated_files | ||
OBJECTS_DIR = .generated_files | ||
|
||
# hide the full g++ command line and print only filename | ||
CONFIG += silent | ||
|
||
TRANSLATIONS += lang/lang-ast_ES.ts \ | ||
lang/lang-bg_BG.ts \ | ||
lang/lang-cs_CZ.ts \ | ||
lang/lang-da_DK.ts \ | ||
lang/lang-de_DE.ts \ | ||
lang/lang-el_GR.ts \ | ||
lang/lang-en_GB.ts \ | ||
lang/lang-es_ES.ts \ | ||
lang/lang-fa_IR.ts \ | ||
lang/lang-fi_FI.ts \ | ||
lang/lang-fr_FR.ts \ | ||
lang/lang-he_IL.ts \ | ||
lang/lang-hr_HR.ts \ | ||
lang/lang-hu_HU.ts \ | ||
lang/lang-it_IT.ts \ | ||
lang/lang-lt_LT.ts \ | ||
lang/lang-nl_NL.ts \ | ||
lang/lang-no_NO.ts \ | ||
lang/lang-pl_PL.ts \ | ||
lang/lang-pt_BR.ts \ | ||
lang/lang-pt_PT.ts \ | ||
lang/lang-ru_RU.ts \ | ||
lang/lang-sk_SK.ts \ | ||
lang/lang-sl_SL.ts \ | ||
lang/lang-sr_RS.ts \ | ||
lang/lang-sv_SE.ts \ | ||
lang/lang-tr_TR.ts \ | ||
lang/lang-uk_UA.ts \ | ||
lang/lang-zh_CN.ts | ||
|
||
static { # everything below takes effect with CONFIG += static | ||
CONFIG += static | ||
CONFIG += staticlib # this is needed if you create a static library, not a static executable | ||
message("~~~ static build ~~~") # this is for information, that the static build is done | ||
} | ||
|
||
win32 { | ||
# add suffix | ||
TARGET = LibreELEC.USB-SD.Creator.Win32 | ||
|
||
SOURCES += diskwriter_windows.cpp \ | ||
deviceenumerator_windows.cpp | ||
|
||
HEADERS += diskwriter_windows.h \ | ||
deviceenumerator_windows.h \ | ||
privileges.h | ||
|
||
CONFIG += rtti | ||
QMAKE_LFLAGS = -static -static-libgcc | ||
RC_FILE = winapp.rc | ||
|
||
# remove possible other optimization flags | ||
QMAKE_CXXFLAGS_RELEASE -= -O | ||
QMAKE_CXXFLAGS_RELEASE -= -O1 | ||
QMAKE_CXXFLAGS_RELEASE -= -O2 | ||
QMAKE_CXXFLAGS_RELEASE -= -O3 | ||
# Optimize for size | ||
QMAKE_CXXFLAGS_RELEASE += -Os | ||
|
||
QMAKE_CXXFLAGS = -Ic:\Qt\Qt5.6.1\Tools\mingw492_32\i686-w64-mingw32\include | ||
|
||
# write image to local file named 'dummy_image_file' | ||
# instead to real device (for testing) | ||
#DEFINES += WINDOWS_DUMMY_WRITE | ||
} | ||
|
||
unix { | ||
# remove possible other optimization flags | ||
QMAKE_CFLAGS_RELEASE -= -O | ||
QMAKE_CFLAGS_RELEASE -= -O1 | ||
QMAKE_CFLAGS_RELEASE -= -O2 | ||
QMAKE_CFLAGS_RELEASE -= -O3 | ||
# Optimize for size | ||
QMAKE_CFLAGS_RELEASE += -Os | ||
|
||
QMAKE_CXXFLAGS += -fPIC | ||
|
||
contains(QT_ARCH, i386) { | ||
# link with i386 library manualy unpacked | ||
QMAKE_LFLAGS += -L$(HOME)/Qt5.6.1/ubuntu-i386-lib/usr/lib/i386-linux-gnu | ||
QMAKE_RPATHLINKDIR += $$(HOME)/Qt5.6.1/ubuntu-i386-lib/lib/i386-linux-gnu | ||
} | ||
|
||
SOURCES += diskwriter_unix.cpp \ | ||
deviceenumerator_unix.cpp \ | ||
privileges_unix.cpp | ||
|
||
HEADERS += diskwriter_unix.h \ | ||
deviceenumerator_unix.h \ | ||
privileges_unix.h | ||
} | ||
|
||
macx { | ||
# use spaces on macOS | ||
TARGET = "LibreELEC USB-SD Creator" | ||
|
||
QMAKE_INFO_PLIST = dmg_osx/template.app/Contents/Info.plist | ||
#QT_CONFIG -= no-pkg-config | ||
#CONFIG += link_pkgconfig | ||
# same thing | ||
#QMAKE_POST_LINK += install_name_tool -add_rpath @executable_path/../Frameworks \"LibreELEC USB-SD Creator.app/Contents/MacOS/LibreELEC USB-SD Creator\" | ||
} | ||
|
||
linux* { | ||
# manually add suffix 32/64 | ||
TARGET = LibreELEC.USB-SD.Creator.Linux-bit.bin | ||
|
||
QMAKE_CXXFLAGS += -std=c++11 | ||
|
||
LIBS += -lblkid | ||
} | ||
|
||
FORMS += creator.ui | ||
|
||
LIBS += -lz | ||
|
||
OTHER_FILES += | ||
|
||
RESOURCES += resources.qrc | ||
|
||
CONFIG(debug, debug|release): DEFINES += ALWAYS_DEBUG_OUTPUT |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.