Skip to content

Commit

Permalink
renommage du projet
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Oct 17, 2018
1 parent b9f3153 commit 5d8a3e6
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 45 deletions.
30 changes: 15 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.3)

project(gmajctl VERSION "0.1" LANGUAGES CXX)
project(FreeMajor VERSION "0.1" LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")

# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")
Expand All @@ -26,7 +26,7 @@ set(FLTK_SKIP_IMAGES ON)
set(FLTK_SKIP_FLUID ON)
find_package(FLTK REQUIRED)

add_executable(gmajctl WIN32
add_executable(FreeMajor WIN32
"sources/main.cc"
"sources/app_i18n.cc"
"sources/utility/misc.cc"
Expand All @@ -46,37 +46,37 @@ add_executable(gmajctl WIN32
"sources/ui/eq_display.cc"
"sources/ui/association.cc"
"sources/ui/midi_out_queue.cc")
target_compile_definitions(gmajctl
target_compile_definitions(FreeMajor
PRIVATE "LOCALE_DIRECTORY=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\"")
target_include_directories(gmajctl
target_include_directories(FreeMajor
PRIVATE "sources" "${FLTK_INCLUDE_DIR}")
target_link_libraries(gmajctl PRIVATE "${FLTK_LIBRARIES}")
target_link_libraries(FreeMajor PRIVATE "${FLTK_LIBRARIES}")

include(RtMidi)
target_link_libraries(gmajctl PRIVATE RtMidi)
target_link_libraries(FreeMajor PRIVATE RtMidi)

find_package(Threads REQUIRED)
target_link_libraries(gmajctl PRIVATE "${CMAKE_THREAD_LIBS_INIT}")
target_link_libraries(FreeMajor PRIVATE "${CMAKE_THREAD_LIBS_INIT}")

if(ENABLE_GETTEXT)
target_compile_definitions(gmajctl PRIVATE "ENABLE_NLS=1")
target_include_directories(gmajctl PRIVATE ${Intl_INCLUDE_DIRS})
target_link_libraries(gmajctl PRIVATE ${Intl_LIBRARIES})
target_include_directories(gmajctl PRIVATE "thirdparty/gettext/include")
target_compile_definitions(FreeMajor PRIVATE "ENABLE_NLS=1")
target_include_directories(FreeMajor PRIVATE ${Intl_INCLUDE_DIRS})
target_link_libraries(FreeMajor PRIVATE ${Intl_LIBRARIES})
target_include_directories(FreeMajor PRIVATE "thirdparty/gettext/include")
endif()

# target_sources(gmajctl PRIVATE "thirdparty/Fl_Knob/Fl_Knob/Fl_Knob.cxx")
# target_include_directories(gmajctl PRIVATE "thirdparty/Fl_Knob/Fl_Knob")
# target_sources(FreeMajor PRIVATE "thirdparty/Fl_Knob/Fl_Knob/Fl_Knob.cxx")
# target_include_directories(FreeMajor PRIVATE "thirdparty/Fl_Knob/Fl_Knob")

## Installation
install(TARGETS gmajctl DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(TARGETS FreeMajor DESTINATION "${CMAKE_INSTALL_BINDIR}")

## Translations
if(ENABLE_GETTEXT)
set(TRANSLATIONS "fr")
foreach(translation ${TRANSLATIONS})
gettext_process_po_files("${translation}" ALL INSTALL_DESTINATION "${CMAKE_INSTALL_LOCALEDIR}" PO_FILES
"po/${translation}/gmajctl.po")
"po/${translation}/FreeMajor.po")
endforeach()
endif()

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![Build Status](https://semaphoreci.com/api/v1/jpcima/freemajor/branches/master/badge.svg)](https://semaphoreci.com/jpcima/freemajor)

[Automatic development build for Windows](http://jpcima.sdf1.org/software/development/GMajCtl/gmajctl-dev-win32.zip)
[Automatic development build for Windows](http://jpcima.sdf1.org/software/development/FreeMajor/FreeMajor-dev-win32.zip)

### Dependencies
gmajctl is mostly tested on [LibraZiK-2](http://librazik.tuxfamily.org/), a Debian Stretch based OS.
FreeMajor is mostly tested on [LibraZiK-2](http://librazik.tuxfamily.org/), a Debian Stretch based OS.
The build dependencies on this OS are:
```
cmake
Expand All @@ -19,18 +19,18 @@ Note that you might need to install `git` as well to fetch the sources.

```
git clone --recursive https://github.com/linuxmao-org/FreeMajor.git
mkdir gmajctl/build
cd gmajctl/build
mkdir FreeMajor/build
cd FreeMajor/build
cmake ..
cmake --build .
cd ..
./build/gmajctl
./build/FreeMajor
```
### Build after some modifications

```
cd gmajctl
cd FreeMajor
git pull
cmake --build build
./build/gmajctl
./build/FreeMajor
```
6 changes: 3 additions & 3 deletions docs/manual/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ clean:
$(foreach lang,$(LANGS),$(MAKE) -C $(lang) clean)

install:
install -d $(DESTDIR)$(DOCDIR)/gmajctl/manual/
cp -rf resources $(DESTDIR)$(DOCDIR)/gmajctl/manual/
$(foreach lang,$(LANGS),install -D $(lang)/manual.html $(DESTDIR)$(DOCDIR)/gmajctl/manual/$(lang)/manual.html)
install -d $(DESTDIR)$(DOCDIR)/FreeMajor/manual/
cp -rf resources $(DESTDIR)$(DOCDIR)/FreeMajor/manual/
$(foreach lang,$(LANGS),install -D $(lang)/manual.html $(DESTDIR)$(DOCDIR)/FreeMajor/manual/$(lang)/manual.html)
14 changes: 3 additions & 11 deletions po/fr/gmajctl.po → po/fr/FreeMajor.po
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# French translations for gmajctl package.
# French translations for FreeMajor package.
# Copyright (C) 2018 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the gmajctl package.
# This file is distributed under the same license as the FreeMajor package.
# Jean Pierre Cimalando <[email protected]>, 2018.
# Julien Taverna <[email protected]>, 2018.
# Olivier Humbert <[email protected]>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: gmajctl 0.1\n"
"Project-Id-Version: FreeMajor 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-17 11:21+0200\n"
"PO-Revision-Date: 2018-10-17 10:49+0200\n"
Expand Down Expand Up @@ -759,10 +759,6 @@ msgstr "Fréq. max"
msgid "Frequency"
msgstr "Fréquence"

#: sources/ui/main_window.cc:15 sources/ui/main_component.cxx:111
msgid "G-Major Editor"
msgstr "Éditeur G-Major"

#: sources/model/parameter.cc:390 sources/model/parameter.cc:408
msgid "Gain"
msgstr "Gain"
Expand Down Expand Up @@ -1607,10 +1603,6 @@ msgstr ""
"Contrôleur logiciel libre et open source par\n"
"Jean Pierre Cimalando & Julien Taverna"

#: sources/device/midi.cc:25 sources/device/midi.cc:44
msgid "TC G-Major Editor"
msgstr "Editeur TC G-Major"

#. Fl_Input* txt_patch_name
#: sources/ui/main_component.cxx:1481
msgid "Tap Tempo"
Expand Down
4 changes: 2 additions & 2 deletions scripts/i18n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ po_update() {

for locale in "fr"; do
mkdir -p po/"$locale"
xgettext -k_ -k_P:1c,2 -L C++ --from-code=UTF-8 -c -s -o po/"$locale"/gmajctl.pot \
xgettext -k_ -k_P:1c,2 -L C++ --from-code=UTF-8 -c -s -o po/"$locale"/FreeMajor.pot \
sources/*.{h,cc} \
sources/device/*.{h,cc} \
sources/model/*.{h,cc} \
sources/ui/*.{h,cc,cxx} \
sources/utility/*.{h,cc}
po_update po/"$locale"/gmajctl.po
po_update po/"$locale"/FreeMajor.po
rm -f po/"$locale"/*.pot
done
4 changes: 2 additions & 2 deletions sources/device/midi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Midi_Out &Midi_Out::instance()
Midi_Out::Midi_Out()
{
RtMidiOut *client = new RtMidiOut(
RtMidi::UNSPECIFIED, _("TC G-Major Editor"));
RtMidi::UNSPECIFIED, _("FreeMajor"));
client_.reset(client);
client->setErrorCallback(&on_midi_error, this);
}
Expand All @@ -41,7 +41,7 @@ void Midi_Out::switch_api(RtMidi::Api api)
if (api == client_->getCurrentApi())
return;

RtMidiOut *client = new RtMidiOut(api, _("TC G-Major Editor"));
RtMidiOut *client = new RtMidiOut(api, _("FreeMajor"));
client_.reset(client);
client->setErrorCallback(&on_midi_error, this);
has_open_port_ = false;
Expand Down
4 changes: 2 additions & 2 deletions sources/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ int main()
{
#if ENABLE_NLS
setlocale(LC_ALL, "");
bindtextdomain("gmajctl", LOCALE_DIRECTORY "/");
textdomain("gmajctl");
bindtextdomain("FreeMajor", LOCALE_DIRECTORY "/");
textdomain("FreeMajor");
#endif

Main_Window win;
Expand Down
2 changes: 1 addition & 1 deletion sources/ui/main_component.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void Main_Component::cb_btn_modifiers(Fl_Button* o, void* v) {
}
Main_Component::Main_Component(int X, int Y, int W, int H, const char *L)
: Fl_Group(X, Y, W, H, L) {
{ Fl_Box* o = new Fl_Box(595, 1, 315, 39, _("G-Major Editor"));
{ Fl_Box* o = new Fl_Box(595, 1, 315, 39, _("FreeMajor"));
o->box(FL_UP_BOX);
o->labeltype(FL_SHADOW_LABEL);
o->labelsize(28);
Expand Down
2 changes: 1 addition & 1 deletion sources/ui/main_component.fld
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ widget_class Main_Component {open
decl {void on_changed_midi_interface();} {private local
}
Fl_Box {} {
label {G-Major Editor}
label FreeMajor selected
xywh {595 1 315 39} box UP_BOX labeltype SHADOW_LABEL labelsize 28
}
Fl_Button btn_import {
Expand Down
2 changes: 1 addition & 1 deletion sources/ui/main_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Main_Window::Main_Window()
{
Main_Component *component = new Main_Component(0, 0, w(), h());
component_.reset(component);
this->copy_label(_("G-Major Editor"));
this->label(_("FreeMajor"));
}

Main_Window::~Main_Window()
Expand Down

0 comments on commit 5d8a3e6

Please sign in to comment.