mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
Revert "ruby: Add workarounds to use in-tree build not the installed one"
This reverts commit 82b73ffd73
.
Only leave the copyright changes.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
2f1a11268f
commit
35cb1c95cc
2 changed files with 4 additions and 22 deletions
|
@ -21,8 +21,8 @@
|
||||||
#ifndef DEFS_H
|
#ifndef DEFS_H
|
||||||
#define DEFS_H
|
#define DEFS_H
|
||||||
|
|
||||||
|
#include <notmuch.h>
|
||||||
#include <ruby.h>
|
#include <ruby.h>
|
||||||
#include "notmuch.h"
|
|
||||||
|
|
||||||
VALUE notmuch_rb_cDatabase;
|
VALUE notmuch_rb_cDatabase;
|
||||||
VALUE notmuch_rb_cDirectory;
|
VALUE notmuch_rb_cDirectory;
|
||||||
|
|
|
@ -5,27 +5,9 @@
|
||||||
|
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
NOTDIR = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
|
# Notmuch Library
|
||||||
NOTHDR = File.join(NOTDIR, 'notmuch.h')
|
find_header('notmuch.h', '../../lib')
|
||||||
NOTLIB = File.join(NOTDIR, 'libnotmuch.a')
|
find_library('notmuch', 'notmuch_database_create', '../../lib')
|
||||||
|
|
||||||
unless File.exists? NOTHDR
|
|
||||||
$stderr.puts "notmuch.h is missing under #{NOTDIR}"
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
unless File.exists? NOTLIB
|
|
||||||
$stderr.puts "libnotmuch.a is missing under #{NOTDIR}"
|
|
||||||
exit 1
|
|
||||||
end
|
|
||||||
|
|
||||||
# Small hack to build with in-tree version not the installed one.
|
|
||||||
# find_header() and friends use standard include/library paths first.
|
|
||||||
$stderr.puts "Added -I#{NOTDIR} to $INCFLAGS"
|
|
||||||
$INCFLAGS = "-I#{NOTDIR}".quote + " " + $INCFLAGS
|
|
||||||
find_header('notmuch.h', NOTDIR)
|
|
||||||
|
|
||||||
$LOCAL_LIBS += NOTLIB
|
|
||||||
|
|
||||||
# Create Makefile
|
# Create Makefile
|
||||||
dir_config('notmuch')
|
dir_config('notmuch')
|
||||||
|
|
Loading…
Reference in a new issue