Add pathnames.h.in
Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
476e55a0c0
commit
199e92f345
3 changed files with 43 additions and 0 deletions
|
|
@ -22,6 +22,15 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.9)
|
cmake_minimum_required(VERSION 3.9)
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_SOURCE_DIR}/pathnames.h.in"
|
||||||
|
"${CMAKE_BINARY_DIR}/pathnames.h"
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories("${CMAKE_BINARY_DIR}")
|
||||||
|
|
||||||
project(sj3
|
project(sj3
|
||||||
VERSION 2.0.94
|
VERSION 2.0.94
|
||||||
LANGUAGES C
|
LANGUAGES C
|
||||||
|
|
|
||||||
32
pathnames.h.in
Normal file
32
pathnames.h.in
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
/*-
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*
|
||||||
|
* Copyright (c) 2023 Masanori Ogino
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SJ3_PATHNAMES_H_
|
||||||
|
#define SJ3_PATHNAMES_H_
|
||||||
|
|
||||||
|
#define _PATH_SJ3_CONF_FILE "@CMAKE_INSTALL_FULL_SYSCONFDIR@/sj3.conf"
|
||||||
|
#define _PATH_SJ3_LOCK_FILE "@CMAKE_INSTALL_FULL_RUNSTATEDIR@/sj3.lock"
|
||||||
|
#define _PATH_SJ3_SOCK_FILE "@CMAKE_INSTALL_FULL_RUNSTATEDIR@/sj3.sock"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -27,6 +27,8 @@
|
||||||
* @brief かな漢字変換サーバーのエントリーポイント。
|
* @brief かな漢字変換サーバーのエントリーポイント。
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "pathnames.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue