You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
938 B

  1. From 0102d423b79de7af982c8d4619d816f95a9b9278 Mon Sep 17 00:00:00 2001
  2. From: Mathieu Parent <math.parent@gmail.com>
  3. Date: Thu, 29 Oct 2009 23:55:19 +0100
  4. Subject: [PATCH 6/7] Set picolangdir
  5. ---
  6. pico/Makefile.am | 2 +-
  7. pico/bin/pico2wave.c | 4 ++++
  8. 2 files changed, 5 insertions(+), 1 deletions(-)
  9. --- a/pico/Makefile.am
  10. +++ b/pico/Makefile.am
  11. @@ -84,5 +84,5 @@ pico2wave_SOURCES = \
  12. bin/pico2wave.c
  13. pico2wave_LDADD = \
  14. libttspico.la -lm -lpopt
  15. -pico2wave_CFLAGS = -Wall -I lib
  16. +pico2wave_CFLAGS = -Wall -Dpicolangdir=\"$(picolangdir)\" -I lib
  17. --- a/pico/bin/pico2wave.c
  18. +++ b/pico/bin/pico2wave.c
  19. @@ -36,7 +36,11 @@
  20. /* string constants */
  21. #define MAX_OUTBUF_SIZE 128
  22. +#ifdef picolangdir
  23. +const char * PICO_LINGWARE_PATH = picolangdir "/";
  24. +#else
  25. const char * PICO_LINGWARE_PATH = "./lang/";
  26. +#endif
  27. const char * PICO_VOICE_NAME = "PicoVoice";
  28. /* supported voices