Commit cfe2e72b authored by Yuanle Song's avatar Yuanle Song
Browse files

v1.3.2 moved c_std=c11 to project() call.

add doc on how to compile from source.
parent 68cab634
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
# -*- mode: conf -*-
project('zero-panel', 'c',
  version: '1.3.1',
  version: '1.3.2',
  license: 'EPL-2.0',
  meson_version: '>=0.46.0',
  default_options: [
    'warning_level=3',
    'werror=true',
    'buildtype=debugoptimized'])
    'buildtype=debugoptimized',
    'c_std=c11'])

add_project_arguments(
  '-std=c11',
  '-Wno-unused-parameter',
  '-Wno-missing-field-initializers',
  language: 'c')
+45 −1
Original line number Diff line number Diff line
* COMMENT -*- mode: org -*-
#+Date: 2019-09-02
Time-stamp: <2023-08-01>
Time-stamp: <2023-08-15>
#+STARTUP: content
* notes                                                               :entry:
** 2023-08-15 how to build from source?                                 :doc:
- build dependencies

  - debian
    sudo apt install -y libglib2.0-dev-bin libgtk-3-dev python3-pip

  - RHEL
    sudo dnf install -y glib2-devel gtk3-devel python3-pip

- meson build tool
  python3 -m pip install --user meson ninja

- do a debug/release build

  in project root dir,
  # for debug build, do not include "--buildtype release" param
  meson setup --buildtype release build/
  cd build && ninja

  to run the built binary
  in project root dir,
  ./build/zero-panel

** 2020-06-03 how to make a release?
- update version number in meson.build
- update ChangeLog in README.org
@@ -220,6 +243,27 @@ is it because I don't have a compositor that support alpha?
  what is KDE's compositor? kwin. kwin supports KDE round corners just fine.

* done                                                                :entry:
** 2023-08-15 try build on RHEL9.
- meson.build:11: WARNING: Consider using the built-in option for language
  standard version instead of using "-std=c11".

  add_project_arguments(
    '-std=c11',
    ...)
  to
  executable('myprog', 'main.c', 
    c_std='c11',
    ...)

  I think add it in project arguments is better.
  otherwise, I have to repeat it multiple times.

  it can be added in project() call. only once.

- gdbus-codegen not found.
  sudo dnf install -y glib2-devel gtk3-devel
- it runs fine in RHEL.

** 2023-08-01 support dark theme better.
when using dark theme, default font color is white, I can't read zero-panel
candidates.